/* ==========================================================================
   SAM INDUSTRIAL - HOJA DE ESTILOS CORPORATIVA E INGENIERÍA
   Azul Marino: #04154B | Azul Acero: #0D2B7A | Naranja Energía: #F7941D
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --azul-marino: #04154B;
  --azul-acero: #0D2B7A;
  --azul-suave: #EBF1FA;
  --naranja: #F7941D;
  --naranja-hover: #D97706;
  --gris-pizarra: #475569;
  --gris-claro: #F8FAFC;
  --borde: #E2E8F0;
  --texto-oscuro: #0F172A;
  --blanco: #FFFFFF;
  --sombra-card: 0 10px 25px -5px rgba(4, 21, 75, 0.08);
  --sombra-hover: 0 20px 30px -10px rgba(4, 21, 75, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0F172A;
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, .titulo-industrial {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  display: block;
}

.contenedor {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ==========================================================================
   TOP BAR CORPORATIVA + BOTÓN LOGO REPSE
   ========================================================================== */
.topbar {
  background-color: #04154B;
  color: #CBD5E1;
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 2px solid #F7941D;
}

.topbar-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-info span, .topbar-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-info a:hover {
  color: #F7941D;
}

.badge-repse-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  border: 1.5px solid #F7941D;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: default;
  user-select: none;
}

.badge-repse-top img {
  height: 26px;
  max-height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   NAVEGACIÓN PRINCIPAL
   ========================================================================== */
.navbar {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(4, 21, 75, 0.07);
}

.nav-contenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo-link img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #04154B;
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #F7941D;
  transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a.activo::after {
  width: 100%;
}

.btn-cotizar-nav {
  background-color: #F7941D;
  color: #FFFFFF !important;
  padding: 10px 20px !important;
  border-radius: 4px;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(247, 148, 29, 0.3);
}

.btn-cotizar-nav::after {
  display: none !important;
}

.btn-cotizar-nav:hover {
  background-color: #D97706;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #04154B;
  color: #04154B;
  font-size: 1.4rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========================================================================
   HERO SPLIT-SCREEN INDUSTRIAL
   ========================================================================== */
.hero-split {
  background: linear-gradient(135deg, #F8FAFC 0%, #EBF1FA 100%);
  padding: 65px 0 75px;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 45px;
  align-items: center;
}

.etiqueta-sector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #04154B;
  color: #FFFFFF;
  padding: 6px 14px;
  border-left: 4px solid #F7941D;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-texto h1 {
  font-size: 3.3rem;
  color: #04154B;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-texto h1 span {
  color: #F7941D;
}

.hero-texto p {
  font-size: 1.06rem;
  color: #475569;
  margin-bottom: 28px;
  max-width: 590px;
}

.hero-botones {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primario {
  background-color: #F7941D;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primario:hover {
  background-color: #D97706;
  transform: translateY(-2px);
}

.btn-secundario {
  background-color: #04154B;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secundario:hover {
  background-color: #0D2B7A;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
}

.hero-marco {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(4, 21, 75, 0.25);
  border-bottom: 6px solid #F7941D;
}

.hero-marco img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-tarjeta-flotante {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: #04154B;
  color: #FFFFFF;
  padding: 16px 22px;
  border-left: 5px solid #F7941D;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-tarjeta-flotante strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  color: #F7941D;
}

.hero-tarjeta-flotante span {
  font-size: 0.85rem;
  color: #E2E8F0;
}

/* ==========================================================================
   FRANJA DE INDICADORES TÉCNICOS
   ========================================================================== */
.franja-datos {
  background-color: #04154B;
  color: #FFFFFF;
  padding: 32px 0;
}

.datos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.dato-item {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 15px;
}

.dato-item:last-child {
  border-right: none;
}

.dato-item h3 {
  font-size: 2.2rem;
  color: #F7941D;
  margin-bottom: 4px;
}

.dato-item p {
  font-size: 0.88rem;
  color: #CBD5E1;
}

/* ==========================================================================
   SECCIONES GENERALES Y ENCABEZADOS
   ========================================================================== */
.seccion {
  padding: 75px 0;
}

.seccion-gris {
  background-color: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.encabezado-seccion {
  margin-bottom: 45px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.encabezado-centro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.subtitulo-seccion {
  color: #F7941D;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}

.titulo-seccion {
  font-size: 2.5rem;
  color: #04154B;
  font-weight: 800;
}

/* ==========================================================================
   TARJETAS DE LÍNEAS DE PRODUCTO
   ========================================================================== */
.grid-lineas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-linea {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: 4px solid #04154B;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--sombra-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-linea:hover {
  transform: translateY(-6px);
  border-top-color: #F7941D;
  box-shadow: var(--sombra-hover);
}

.card-linea-img {
  height: 210px;
  background-color: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
}

.card-linea-img img {
  max-height: 175px;
  width: auto;
  object-fit: contain;
}

.badge-destacado {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #F7941D;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

.card-linea-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-linea-body h3 {
  font-size: 1.5rem;
  color: #04154B;
  margin-bottom: 10px;
}

.card-linea-body ul {
  list-style: none;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-linea-body ul li {
  font-size: 0.9rem;
  color: #475569;
  padding: 4px 0 4px 18px;
  position: relative;
}

.card-linea-body ul li::before {
  content: '▸';
  color: #F7941D;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.link-ficha {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
  color: #04154B;
  font-weight: 700;
  font-size: 0.9rem;
}

.card-linea:hover .link-ficha {
  color: #F7941D;
}

/* ==========================================================================
   CUADRÍCULA DE MARCAS INDUSTRIALES (ANTI-DESBORDAMIENTO MÓVIL)
   ========================================================================== */
.grid-marcas {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.marca-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 5px;
  height: 92px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
  transition: all 0.25s ease;
}

.marca-box img {
  max-height: 54px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(35%);
  transition: all 0.25s ease;
}

.marca-box:hover {
  border-color: #F7941D;
  box-shadow: var(--sombra-card);
  transform: translateY(-3px);
}

.marca-box:hover img {
  filter: grayscale(0%);
}

/* ==========================================================================
   BLOQUE SERVICIOS Y PROYECTOS LLAVE EN MANO
   ========================================================================== */
.grid-servicios-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: stretch;
}

.panel-ingenieria {
  background: #04154B;
  color: #FFFFFF;
  padding: 40px;
  border-radius: 6px;
  border-bottom: 5px solid #F7941D;
}

.panel-ingenieria h3 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.panel-ingenieria p {
  color: #CBD5E1;
  margin-bottom: 24px;
}

.lista-fases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.fase-item {
  background: rgba(255, 255, 255, 0.07);
  padding: 12px 15px;
  border-left: 3px solid #F7941D;
  font-size: 0.92rem;
  font-weight: 600;
}

.panel-mantenimiento {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 40px;
  border-radius: 6px;
  box-shadow: var(--sombra-card);
}

.panel-mantenimiento h3 {
  font-size: 2rem;
  color: #04154B;
  margin-bottom: 14px;
}

.tipos-mtto {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag-mtto {
  background: #EBF1FA;
  color: #04154B;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 3px;
}

/* ==========================================================================
   CTA BANNER DE COTIZACIÓN
   ========================================================================== */
.cta-industrial {
  background: linear-gradient(90deg, #04154B 0%, #0D2B7A 100%);
  color: #FFFFFF;
  padding: 55px 0;
  border-top: 4px solid #F7941D;
}

.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-flex h2 {
  font-size: 2.3rem;
  margin-bottom: 8px;
}

.cta-flex p {
  color: #E2E8F0;
  max-width: 620px;
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */
.footer {
  background-color: #020B29;
  color: #CBD5E1;
  padding: 60px 0 85px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 35px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  background: #FFFFFF;
  padding: 8px 14px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 44px;
}

.footer h4 {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 16px;
  border-left: 3px solid #F7941D;
  padding-left: 10px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 9px;
}

.footer ul a:hover {
  color: #F7941D;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.82rem;
  color: #94A3B8;
}

.footer-bottom a {
  color: #F7941D;
  text-decoration: underline;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (SIN EMPALMES)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background-color: #25D366;
  color: #FFFFFF;
  padding: 11px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 999;
}

.whatsapp-float:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
}

/* ==========================================================================
   ENCABEZADO DE PÁGINAS INTERNAS
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, #04154B 0%, #0D2B7A 100%);
  color: #FFFFFF;
  padding: 50px 0;
  border-bottom: 4px solid #F7941D;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.page-header p {
  color: #CBD5E1;
  max-width: 680px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid, .grid-servicios-home {
    grid-template-columns: 1fr;
  }
  .grid-lineas {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-marcas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .datos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dato-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-tarjeta-flotante {
    left: 15px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    gap: 15px;
  }
  .nav-menu.abierto {
    display: flex;
  }
  .hero-texto h1 {
    font-size: 2.5rem;
  }
  .grid-lineas {
    grid-template-columns: 1fr;
  }
  .grid-marcas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .marca-box {
    height: 76px;
    padding: 8px;
  }
  .marca-box img {
    max-height: 44px;
  }
  .lista-fases {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-float {
    padding: 12px;
    bottom: 14px;
    right: 14px;
  }
  .whatsapp-float span {
    display: none;
  }
}

@media (max-width: 480px) {
  .grid-marcas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .marca-box {
    height: 72px;
    padding: 10px;
  }
  .marca-box img {
    max-height: 42px;
    max-width: 85%;
  }
  .panel-ingenieria, .panel-mantenimiento {
    padding: 26px 20px;
  }
}