/* ==========================================================================
   ECOABI - PALETA CORPORATIVA: BLANCO, NEGRO Y AZUL OSCURO
   Diseño industrial de alta tecnología para Climatización y Frío
   ========================================================================== */

:root {
  /* Identidad Oficial: Blanco, Negro y Azul Corporativo (#0a4d85) */
  --ecoabi-blue-dark: #07355c;     /* Azul marino oscuro industrial */
  --ecoabi-blue-navy: #0a4d85;     /* Azul corporativo oficial (muestra usuario) */
  --ecoabi-blue-primary: #0a4d85;  /* Azul corporativo principal */
  --ecoabi-blue-light: #38bdf8;    /* Azul cian / hielo para acentos técnicos */
  
  --ecoabi-black: #080c14;         /* Negro técnico profundo */
  --ecoabi-black-card: #0f1624;    /* Negro grafito para superficies */
  --ecoabi-slate: #1e293b;         /* Pizarra azulado */
  
  --ecoabi-white: #ffffff;         /* Blanco puro */
  --ecoabi-white-subtle: #f6f9fc;  /* Blanco hielo */
  
  /* Variables de compatibilidad enlazadas a la nueva paleta */
  --ecoabi-green: #0a4d85;         /* Azul Corporativo */
  --ecoabi-green-dark: #072a47;    /* Azul Marino Oscuro */
  --ecoabi-green-light: #38bdf8;   /* Azul Hielo */
  --ecoabi-yellow: #0a4d85;        /* Azul Corporativo */
  --ecoabi-yellow-dark: #072a47;   /* Azul Marino */

  /* Fondos y superficies */
  --theme-bg-dark: #090d16;        /* Negro técnico */
  --theme-bg-header: #070a10;      /* Negro puro */
  --theme-bg-footer: #05080e;      /* Negro grafito */
  --theme-bg-surface: #ffffff;     /* Blanco */
  --theme-bg-subtle: #f4f7fb;      /* Blanco hielo */
  --theme-border: #e2e8f0;         /* Borde limpio */

  --theme-text-dark: #0b1320;      /* Negro grafito */
  --theme-text-muted: #475569;     /* Gris azulado */
  --theme-text-light: #ffffff;     /* Blanco */

  /* Colores por Área Productiva */
  --color-area-industrial: #0b1f3a;     /* Azul marino oscuro */
  --color-area-comercial: #1d4ed8;      /* Azul cobalto */
  --color-area-clima: #0284c7;          /* Azul cian climatización */
  --color-area-mantenimiento: #2563eb;  /* Azul técnico 24/7 */
  --color-area-paneleria: #0f2b5c;      /* Azul oscuro */

  /* Tipografía oficial */
  --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-width: 1200px;
  --header-height: 84px;
  --topbar-height: 42px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   MODO BLANCO / LIGHT THEME - REGLAS INTEGRALES DE CONTRASTE Y LEGIBILIDAD
   ========================================================================== */
body.theme-light {
  --theme-bg-dark: #f8fafc;
  --theme-bg-header: #ffffff;
  --theme-bg-footer: #05080e;
  --theme-bg-surface: #ffffff;
  --theme-bg-subtle: #f1f5f9;
  --theme-border: #cbd5e1;
  --theme-text-dark: #0b1320;
  --theme-text-muted: #334155;
  background-color: #ffffff;
  color: #0b1320;
}

body.theme-light .topbar {
  background-color: #071526;
  color: #e2e8f0;
}

body.theme-light .header-main {
  background-color: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.06);
}

body.theme-light .nav-link {
  color: #0b1320;
}

body.theme-light .nav-link:hover,
body.theme-light .nav-item.active .nav-link {
  color: var(--ecoabi-blue-navy);
}

body.theme-light .mobile-btn span {
  background-color: #0b1320;
}

/* Franja Especial de Panelería y Cerramientos */
body.theme-light .panelfrio-strip {
  background-color: #071526;
  border-left: 6px solid var(--ecoabi-blue-navy);
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.12);
}

body.theme-light .panelfrio-text {
  color: #cbd5e1;
}

body.theme-light .panelfrio-text strong {
  color: #ffffff;
}

body.theme-light .panelfrio-info img {
  filter: none;
}

/* Sección Nuestro Propósito ECOABI en Modo Blanco */
body.theme-light .section-proposito {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

body.theme-light .proposito-title {
  color: #0f172a;
}

body.theme-light .proposito-title strong {
  color: var(--ecoabi-blue-navy);
}

body.theme-light .proposito-p {
  color: #334155;
}

body.theme-light .proposito-p strong {
  color: #0f172a;
  font-weight: 700;
}

/* Sellos y Certificaciones en Modo Blanco */
body.theme-light .certifications-grid {
  border-top: 1px solid #cbd5e1;
}

body.theme-light .cert-logo-box {
  background: #071526;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.12);
}

body.theme-light .cert-logo-box:hover {
  background: #0a4d85;
  border-color: #38bdf8;
  transform: translateY(-3px);
}

body.theme-light .cert-logo-box img {
  filter: none;
}

/* Secciones de Proyectos y Actualidad */
body.theme-light .section-proyectos-destacados {
  background-color: #f1f5f9;
}

body.theme-light .section-blog {
  background-color: #f1f5f9;
}

body.theme-light .news-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}

/* Footer siempre mantiene fondo oscuro oficial */
body.theme-light .footer-enfrio,
body.theme-light .footer-main {
  background-color: #05080e !important;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--theme-text-dark);
  background-color: var(--theme-bg-surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   1. TOPBAR & HEADER
   ========================================================================== */
.topbar {
  background-color: var(--theme-bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #bbb;
  position: relative;
  z-index: 1010;
  transition: background-color 0.3s ease;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  flex-wrap: wrap;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-info a, .topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-weight: 400;
}

.topbar-info a:hover {
  color: var(--ecoabi-blue-navy);
}

.topbar-info svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Selector interactivo de Modo Claro / Modo Oscuro */
.theme-switch-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.theme-switch-btn:hover {
  background: var(--ecoabi-green);
  border-color: var(--ecoabi-green);
}

/* Conmutador de Idiomas (ES / CA) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.lang-switch a {
  padding: 5px 8px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-switch a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.lang-switch a.active {
  color: #ffffff;
  background: var(--ecoabi-blue-light);
}

.lang-switch .lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}

.header-main {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--theme-bg-header);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu,
.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .nav-menu,
  .nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--ecoabi-blue-navy);
}

/* Dropdown Mega Menú de Áreas Productivas */
.nav-item-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: -200px;
  width: 900px;
  background-color: rgba(21, 21, 21, 0.98);
  backdrop-filter: blur(12px);
  border-top: 3px solid var(--ecoabi-blue-navy);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1020;
}

.mega-card {
  position: relative;
  height: 220px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #ffffff;
  border-bottom: 6px solid var(--ecoabi-blue-navy);
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.mega-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(10, 77, 133, 0.35);
}

.mega-card.comercial { border-color: var(--ecoabi-blue-navy); }
.mega-card.clima { border-color: var(--ecoabi-blue-navy); }
.mega-card.mantenimiento { border-color: var(--ecoabi-blue-navy); }

.mega-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.2) 0%, rgba(21, 21, 21, 0.92) 100%);
  transition: var(--transition);
}

.mega-card:hover .mega-card-overlay {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.15) 0%, rgba(10, 77, 133, 0.90) 100%);
}

.mega-card-content {
  position: relative;
  z-index: 2;
}

.mega-card-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #93c5fd;
  letter-spacing: 1px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.mega-card:hover .mega-card-subtitle {
  color: #ffffff;
}

.mega-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Botón Hamburguesa Móvil */
.mobile-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (min-width: 992px) {
  .mobile-btn {
    display: none;
  }
}

.mobile-btn span {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: var(--transition);
}

.mobile-btn.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-btn.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Menú Móvil */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--theme-bg-dark);
  box-shadow: -5px 0 25px rgba(0,0,0,0.5);
  padding: 5rem 2rem 2rem;
  transition: right 0.35s ease;
  z-index: 1005;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-nav-panel.open {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-nav-link {
  color: #ffffff;
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.7);
  display: none;
  z-index: 1002;
}

.mobile-overlay.open {
  display: block;
}

/* ==========================================================================
   2. HERO SECTION CON IMAGEN HVAC OFICIAL Y ESTÉTICA ECOABI
   ========================================================================== */
.hero-enfrio {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: var(--theme-bg-dark);
  background-image: url('hero_hvac.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
}

.hero-enfrio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 21, 21, 0.92) 0%, rgba(21, 21, 21, 0.72) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 77, 133, 0.25);
  border: 1px solid var(--ecoabi-blue-navy);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-badge-pill span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ecoabi-blue-navy);
  box-shadow: 0 0 10px var(--ecoabi-blue-navy);
}

.hero-main-title {
  font-size: 2.3rem;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-main-title strong {
  font-weight: 800;
  color: #ffffff;
}

.hero-main-title span.highlight-green {
  font-weight: 800;
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero-main-title {
    font-size: 3.4rem;
  }
}

.hero-lead-text {
  font-size: 1.15rem;
  color: #e2e8f0;
  line-height: 1.75;
  max-width: 800px;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.hero-sub-lead {
  font-size: 1.05rem;
  color: #a0aec0;
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.btn-ecoabi-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--ecoabi-green);
  color: #ffffff;
  padding: 15px 34px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(14, 46, 92, 0.25);
  transition: var(--transition);
}

.btn-ecoabi-primary:hover {
  background-color: var(--ecoabi-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 46, 92, 0.4);
}

.btn-ecoabi-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--ecoabi-blue-navy);
  color: #ffffff;
  padding: 15px 32px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(14, 46, 92, 0.3);
  transition: var(--transition);
}

.btn-ecoabi-secondary:hover {
  background-color: var(--ecoabi-blue-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 46, 92, 0.45);
}

.btn-video-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-video-trigger .circle-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-video-trigger:hover .circle-play {
  background-color: var(--ecoabi-blue-navy);
  border-color: var(--ecoabi-blue-navy);
  color: #1a202c;
}

.btn-video-trigger:hover .circle-play svg {
  fill: #1a202c;
}

/* ==========================================================================
   3. SECCIÓN PROYECTOS DESTACADOS ECOABI
   ========================================================================== */
.section-proyectos-destacados {
  padding: 5.5rem 0;
  background-color: var(--theme-bg-subtle);
  transition: background-color 0.3s ease;
}

.section-head {
  margin-bottom: 3rem;
}

.section-tag-mini {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ecoabi-blue-navy);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.section-heading-enfrio {
  font-size: 2.3rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--theme-text-dark);
}

.section-heading-enfrio strong {
  font-weight: 700;
  color: var(--ecoabi-blue-navy);
}

.projects-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .projects-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-item-card {
  position: relative;
  height: 380px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 5px solid var(--ecoabi-green);
}

.project-item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.project-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-item-card:hover .project-bg-img {
  transform: scale(1.08);
}

.project-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.1) 0%, rgba(21, 21, 21, 0.95) 100%);
  transition: var(--transition);
}

.project-item-card:hover .project-card-shade {
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.2) 0%, rgba(11, 31, 58, 0.92) 100%);
}

.project-info {
  position: relative;
  z-index: 2;
}

.project-meta-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  opacity: 0.9;
  margin-bottom: 4px;
}

.project-client-name {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ==========================================================================
   4. SECCIÓN "NUESTRO PROPÓSITO" CON SELLOS DE CALIDAD Y ECOABI
   ========================================================================== */
.section-proposito {
  padding: 6.5rem 0;
  background-color: var(--theme-bg-dark);
  color: #ffffff;
  position: relative;
  transition: background-color 0.3s ease;
}

.proposito-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .proposito-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.proposito-title {
  font-size: 2.2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.proposito-title strong {
  font-weight: 700;
  color: var(--ecoabi-blue-navy);
}

.proposito-p {
  color: #cccccc;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.proposito-p strong {
  color: #ffffff;
}

/* Grid de sellos de calidad */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 600px) {
  .certifications-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-logo-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: var(--transition);
}

.cert-logo-box:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  border-color: var(--ecoabi-green);
}

.cert-logo-box img {
  max-height: 52px;
  max-width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   5. SECCIÓN ÁREAS PRODUCTIVAS ECOABI CON IMÁGENES GENERADAS
   ========================================================================== */
.section-areas {
  padding: 6.5rem 0;
  background-color: var(--theme-bg-surface);
  transition: background-color 0.3s ease;
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 600px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.area-card {
  position: relative;
  background-color: var(--theme-bg-surface);
  border: 1px solid var(--theme-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.area-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Barras inferiores oficiales */
.area-card.industrial { border-bottom: 6px solid var(--color-area-industrial); }
.area-card.comercial { border-bottom: 6px solid var(--color-area-comercial); }
.area-card.clima { border-bottom: 6px solid var(--color-area-clima); }
.area-card.mantenimiento { border-bottom: 6px solid var(--color-area-mantenimiento); }

.area-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.area-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.area-card:hover .area-media img {
  transform: scale(1.06);
}

.area-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.area-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ecoabi-green);
  margin-bottom: 6px;
}

.area-title {
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--theme-text-dark);
  margin-bottom: 14px;
}

.area-desc {
  font-size: 0.92rem;
  color: var(--theme-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.area-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ecoabi-blue-navy);
}

.area-card.industrial .area-link { color: var(--ecoabi-blue-navy); }
.area-card.comercial .area-link { color: var(--ecoabi-blue-navy); }
.area-card.clima .area-link { color: var(--ecoabi-blue-navy); }
.area-card.mantenimiento .area-link { color: var(--ecoabi-blue-navy); }

/* Banner Especial Eficiencia y Panelería */
.panelfrio-strip {
  margin-top: 3.5rem;
  background-color: var(--theme-bg-dark);
  padding: 30px;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 6px solid var(--ecoabi-blue-navy);
}

.panelfrio-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.panelfrio-info img {
  height: 48px;
  width: auto;
}

.panelfrio-text {
  color: #ddd;
  font-size: 0.95rem;
}

/* ==========================================================================
   6. BANNER CLIENTES / PROYECTOS
   ========================================================================== */
.banner-empresas {
  background: #080c14;
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-empresas h2 {
  font-size: 2.2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1rem;
}

.banner-empresas h2 strong {
  color: var(--ecoabi-blue-navy);
}

.banner-empresas p {
  color: #ccc;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* ==========================================================================
   7. SECCIÓN ACTUALIDAD / BLOG
   ========================================================================== */
.section-blog {
  padding: 6rem 0;
  background-color: var(--theme-bg-subtle);
  transition: background-color 0.3s ease;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background-color: var(--theme-bg-surface);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid var(--theme-border);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.news-img {
  height: 220px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.05);
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--ecoabi-green);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--theme-text-dark);
  margin-bottom: 12px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--theme-text-muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--theme-border);
}

/* ==========================================================================
   8. FOOTER OFICIAL
   ========================================================================== */
.footer-enfrio,
.footer-main {
  background-color: var(--theme-bg-footer) !important;
  color: #999;
  padding-top: 5rem;
  font-size: 0.88rem;
  border-top: 3px solid var(--ecoabi-blue-navy);
}

#footerLogo,
.footer-logo,
.footer-enfrio .footer-grid > div:first-child img,
.footer-enfrio img[src*="logo"] {
  height: 50px !important;
  max-height: 50px !important;
  width: auto !important;
  max-width: 250px !important;
  object-fit: contain;
  display: block;
}

.footer-grid,
.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 600px) {
  .footer-grid,
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid,
  .footer-content {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--ecoabi-green);
}

.footer-links-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li,
.footer-links li {
  margin-bottom: 10px;
}

.footer-links-list a,
.footer-links a {
  color: #999;
  transition: var(--transition);
  text-decoration: none;
}

.footer-links-list a:hover,
.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ==========================================================================
   MODAL DE VÍDEO
   ========================================================================== */
.modal-video-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-video-overlay.active {
  display: flex;
}

.modal-video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: 4px;
  overflow: hidden;
}

.modal-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close-btn {
  position: absolute;
  top: -42px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS DE LA PÁGINA DE CONTACTO (contacto.html)
   Estructura fiel a https://enfrio.es/contacto/
   ========================================================================== */

/* ==========================================================================
   PÁGINA DE CONTACTO ECOABI (REDISEÑO: LETRAS BLANCAS Y NEGRAS)
   ========================================================================== */

.page-header-contact {
  background-color: #080c14;
  background-image: linear-gradient(135deg, rgba(8, 12, 20, 0.95) 0%, rgba(15, 30, 55, 0.9) 100%), url('hero_hvac.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 4.5rem 0 3.8rem;
  border-bottom: 2px solid #080c14;
}

.page-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.2rem;
}

.page-header-title {
  font-size: 2.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
  color: #ffffff; /* Letras blancas */
}

.page-header-title strong {
  font-weight: 800;
  color: #ffffff; /* Letras blancas */
}

.page-header-divider {
  width: 50px;
  height: 3px;
  background-color: #ffffff; /* Separador blanco */
  margin-bottom: 1.2rem;
}

.page-header-desc {
  font-size: 1.05rem;
  color: #f1f5f9; /* Letras blancas suaves */
  max-width: 680px;
  line-height: 1.6;
}

/* Sección Principal de Contacto: Dónde estamos + Formulario */
.section-contact-full {
  padding: 4.5rem 0 5rem;
  background-color: #f8fafc;
  transition: background-color 0.3s ease;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .contact-layout-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.contact-column-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ecoabi-blue-navy); /* Azul corporativo */
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.contact-column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--ecoabi-blue-navy); /* Línea azul corporativo */
}

.contact-column-title strong {
  font-weight: 800;
  color: var(--ecoabi-blue-navy); /* Azul corporativo */
}

/* Tarjetas de Sedes y Delegaciones */
.delegaciones-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.delegacion-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--ecoabi-blue-navy); /* Borde azul corporativo */
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.delegacion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 77, 133, 0.12);
}

.delegacion-name {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ecoabi-blue-navy); /* Azul corporativo */
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.delegacion-name svg {
  width: 18px;
  height: 18px;
  fill: var(--ecoabi-blue-navy); /* Icono azul corporativo */
}

.delegacion-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: #1e293b; /* Letras negras carbón */
}

.delegacion-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.delegacion-info-item svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 3px;
  fill: #0a0e17; /* Icono negro */
}

.delegacion-info-item a {
  color: #0a0e17; /* Letras negras */
  font-weight: 700;
  text-decoration: none;
}

.delegacion-info-item a:hover {
  text-decoration: underline;
}

/* Tarjeta SAT 24/7 (Fondo Negro con Letras Blancas) */
.sat-card-dark {
  background-color: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #ffffff;
  padding: 24px;
  border-radius: 6px;
  color: #ffffff; /* Letras blancas */
  box-shadow: 0 6px 20px rgba(8, 12, 20, 0.15);
}

.sat-card-dark h3 {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff; /* Letras blancas */
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sat-card-dark h3 svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.sat-card-dark p {
  font-size: 0.88rem;
  color: #f1f5f9; /* Letras blancas suaves */
  line-height: 1.6;
  margin-bottom: 14px;
}

.sat-card-dark .sat-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sat-card-dark .sat-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #080c14; /* Texto negro sobre botón blanco */
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sat-card-dark .sat-phone-btn:hover {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

.sat-card-dark .sat-phone-btn svg {
  width: 14px;
  height: 14px;
  fill: #080c14;
}

/* Formulario de Contacto Oficial */
.contact-form-wrapper {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 32px 36px;
  border-top: 4px solid var(--ecoabi-blue-navy); /* Borde azul corporativo */
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 600px) {
  .form-group-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0a0e17; /* Letras negras */
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background-color: #ffffff;
  color: #0a0e17; /* Letras negras */
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #0a0e17;
  box-shadow: 0 0 0 3px rgba(10, 14, 23, 0.1);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #334155; /* Letras oscuras legibles */
  cursor: pointer;
  margin-bottom: 22px;
  line-height: 1.4;
}

.form-checkbox-label input {
  margin-top: 2px;
  accent-color: #0a0e17;
  width: 16px;
  height: 16px;
}

.form-checkbox-label a {
  color: #0a0e17;
  font-weight: 700;
  text-decoration: underline;
}

/* Botón de Envío: Fondo Negro con Letras Blancas */
.btn-contact-submit {
  width: 100%;
  background-color: #080c14; /* Fondo negro */
  color: #ffffff; /* Letras blancas */
  border: 1px solid #080c14;
  padding: 15px 24px;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-contact-submit:hover {
  background-color: #0f2b5c; /* Azul marino sutil al interactuar */
  border-color: #0f2b5c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 43, 92, 0.25);
}

.btn-contact-submit svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* Franja Inferior Informativa de Compromiso Técnico (Blanco y Negro) */
.contact-features-strip {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-features-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 18px 20px;
  border-radius: 6px;
}

.contact-feature-card svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  fill: #0a0e17; /* Icono negro */
}

.contact-feature-card div {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0a0e17; /* Letras negras */
  line-height: 1.35;
}

.contact-feature-card div span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #64748b;
}

/* ==========================================================================
   PÁGINAS LEGALES (Aviso Legal, Privacidad, Cookies)
   ========================================================================== */
.page-header-legal {
  background: linear-gradient(135deg, #070a10 0%, #0a4d85 100%);
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 3px solid #0a4d85;
  text-align: center;
}

.page-header-legal .page-header-badge {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header-legal h1 {
  font-size: 2.3rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.page-header-legal h1 strong {
  font-weight: 700;
  color: #ffffff;
}

.page-header-legal p {
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.section-legal {
  padding: 4.5rem 0 6rem;
  background-color: #f8fafc;
}

.legal-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 3rem;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 1.8rem 1.4rem;
  }
}

.legal-last-updated {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-clause {
  margin-bottom: 2.5rem;
}

.legal-clause:last-child {
  margin-bottom: 0;
}

.legal-clause h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a4d85; /* Azul oscuro corporativo */
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-clause h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #080c14; /* Negro */
  margin: 1.4rem 0 0.6rem;
}

.legal-clause p {
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-clause ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.75;
}

.legal-clause li {
  margin-bottom: 0.4rem;
}

.legal-info-box {
  background-color: #f1f5f9;
  border-left: 4px solid #0a4d85;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.legal-info-box p {
  margin-bottom: 0.4rem;
  color: #1e293b;
  font-size: 0.92rem;
}

.legal-info-box p:last-child {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.legal-table th, .legal-table td {
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  text-align: left;
}

.legal-table th {
  background-color: #0a4d85;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.legal-table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* ==========================================================================
   BANNER FLOTANTE DE COOKIES (RGPD / ePrivacy)
   ========================================================================== */
.cookie-floating-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 480px;
  background-color: #080c14; /* Negro profundo corporativo */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  padding: 24px;
  z-index: 999999;
  color: #ffffff;
  display: none;
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-floating-banner.active {
  display: block;
}

@keyframes slideUpCookie {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .cookie-floating-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
    padding: 18px;
  }
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cookie-banner-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 46, 92, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
}

.cookie-banner-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.cookie-banner-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.cookie-banner-desc a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-desc a:hover {
  color: #93c5fd;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  flex: 1;
  background-color: #0a4d85; /* Azul oscuro */
  color: #ffffff;
  border: 1px solid #1e40af;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-cookie-accept:hover {
  background-color: #103b75;
  box-shadow: 0 4px 12px rgba(14, 46, 92, 0.4);
}

.btn-cookie-reject {
  background-color: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cookie-badge-trigger {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background-color: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 99990;
  transition: var(--transition);
}

.cookie-badge-trigger:hover {
  transform: scale(1.1);
  background-color: #0a4d85;
}


/* ==========================================================================
   9. PÁGINAS DE ÁREAS PRODUCTIVAS (CLIMATIZACIÓN, FRÍO INDUSTRIAL, SAT, COMERCIAL)
   ========================================================================== */

/* Hero Banner para Páginas de Área */
.page-header-area {
  position: relative;
  background-color: #080c14;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 6rem 0 5rem;
  border-bottom: 3px solid var(--ecoabi-blue-navy);
  overflow: hidden;
}

.page-header-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 12, 20, 0.94) 0%, rgba(10, 77, 133, 0.82) 100%);
  z-index: 1;
}

.page-header-area .container {
  position: relative;
  z-index: 2;
}

.area-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.area-breadcrumb a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.area-breadcrumb a:hover {
  color: #ffffff;
}

.area-breadcrumb span.sep {
  opacity: 0.5;
}

.area-breadcrumb span.current {
  color: #ffffff;
  font-weight: 700;
}

.page-header-area .page-header-badge {
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--ecoabi-blue-light);
  border-color: rgba(56, 189, 248, 0.3);
}

.page-header-area .page-header-title {
  color: #ffffff;
}

.page-header-area .page-header-title strong {
  color: #ffffff;
  font-weight: 800;
}

.page-header-area .page-header-divider {
  background-color: var(--ecoabi-blue-light);
}

.page-header-area .page-header-desc {
  color: #e2e8f0;
}

/* Sección Intro y Filosofía */
.section-area-intro {
  padding: 5rem 0;
  background-color: var(--theme-bg-surface);
}

.area-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .area-intro-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.area-intro-text h2 {
  font-size: 2.2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--theme-text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.area-intro-text h2 strong {
  font-weight: 800;
  color: var(--ecoabi-blue-navy);
}

.area-intro-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--theme-text-muted);
  margin-bottom: 1.25rem;
}

.area-intro-quote {
  padding: 1.25rem 1.5rem;
  background: rgba(10, 77, 133, 0.08);
  border-left: 4px solid var(--ecoabi-blue-navy);
  border-radius: 0 6px 6px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--theme-text-dark);
  margin: 1.75rem 0;
}

.area-intro-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.area-intro-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Grid de Pilares / Capacidades (Fondo oscuro con textos blancos nítidos) */
.section-area-pilares {
  padding: 5.5rem 0;
  background-color: var(--theme-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-area-pilares .section-tag-mini {
  color: var(--ecoabi-blue-light);
}

.section-area-pilares .section-heading-enfrio {
  color: #ffffff;
}

.section-area-pilares .section-subtitle-enfrio {
  color: #cbd5e1;
}

.pilares-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .pilares-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .pilares-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pilar-card {
  background-color: #0f1624;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 2.2rem 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.pilar-card:hover {
  transform: translateY(-5px);
  border-color: var(--ecoabi-blue-light);
  box-shadow: 0 12px 28px rgba(10, 77, 133, 0.35);
}

.pilar-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ecoabi-blue-light);
  margin-bottom: 1.4rem;
}

.pilar-icon svg {
  width: 26px;
  height: 26px;
}

.pilar-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.pilar-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #94a3b8;
}

/* Modo Claro para sección de Pilares */
body.theme-light .section-area-pilares {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .section-area-pilares .section-tag-mini {
  color: var(--ecoabi-blue-navy);
}

body.theme-light .section-area-pilares .section-heading-enfrio {
  color: #0b1320;
}

body.theme-light .section-area-pilares .section-subtitle-enfrio {
  color: #475569;
}

body.theme-light .pilar-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

body.theme-light .pilar-card:hover {
  border-color: var(--ecoabi-blue-navy);
  box-shadow: 0 12px 28px rgba(10, 77, 133, 0.12);
}

body.theme-light .pilar-icon {
  background: rgba(10, 77, 133, 0.08);
  color: var(--ecoabi-blue-navy);
}

body.theme-light .pilar-title {
  color: #0b1320;
}

body.theme-light .pilar-desc {
  color: #475569;
}

/* Sección Proyectos Relacionados de Área */
.section-area-proyectos {
  padding: 5.5rem 0;
  background-color: var(--theme-bg-subtle);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.15) 0%, rgba(8, 12, 20, 0.92) 100%);
  transition: background 0.3s ease;
}

.project-item-card:hover .project-card-overlay {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.25) 0%, rgba(10, 77, 133, 0.92) 100%);
}

.project-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ecoabi-blue-light);
}

.project-card-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.25;
}

.project-card-summary {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-top: 4px;
}

.project-btn-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-top: 10px;
}

/* Logos y Clientes del Área */
.section-area-logos {
  padding: 5rem 0;
  background-color: var(--theme-bg-dark);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-area-logos .section-tag-mini {
  color: var(--ecoabi-blue-light);
}

.section-area-logos .section-heading-enfrio {
  color: #ffffff;
}

.area-logos-banner {
  max-width: 920px;
  margin: 2.5rem auto 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  background: #ffffff;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.area-logos-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Modo Claro para sección de Logos */
body.theme-light .section-area-logos {
  background-color: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}

body.theme-light .section-area-logos .section-tag-mini {
  color: var(--ecoabi-blue-navy);
}

body.theme-light .section-area-logos .section-heading-enfrio {
  color: #0b1320;
}

body.theme-light .area-logos-banner {
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  border: 1px solid #e2e8f0;
}

/* Banner CTA Inferior */
.section-area-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #070a10 0%, #0a4d85 100%);
  color: #ffffff;
  text-align: center;
}

.section-area-cta h2 {
  font-size: 2.3rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: #ffffff;
}

.section-area-cta h2 strong {
  font-weight: 800;
  color: #ffffff;
}

.section-area-cta p {
  font-size: 1.1rem;
  color: #f1f5f9;
  max-width: 700px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}

.section-area-cta .btn-ecoabi-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--ecoabi-green);
  color: #ffffff;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: var(--transition);
}

.section-area-cta .btn-ecoabi-primary:hover {
  background-color: var(--ecoabi-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.section-area-cta .btn-ecoabi-primary svg {
  transition: transform 0.2s ease;
}

.section-area-cta .btn-ecoabi-primary:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   WIDGET INTERACTIVO DE WHATSAPP ECOABI (VENTANA CHAT + BOTÓN FLOTANTE)
   ========================================================================== */
.whatsapp-widget-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Botón disparador flotante */
.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  outline: none;
  position: relative;
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  background-color: #20ba5a;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: whatsapp-pulse 2.2s infinite;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Insignia de notificación */
.whatsapp-unread-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  pointer-events: none;
}

/* Tarjeta / Modal de Chat */
.whatsapp-chat-box {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 310px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.whatsapp-chat-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Cabecera Verde del Widget */
.whatsapp-box-header {
  background-color: #25d366;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-box-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-box-header-info svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.whatsapp-box-header-info span {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.whatsapp-box-close {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-box-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.whatsapp-box-close svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

/* Cuerpo de Chat con Fondo Patrón */
.whatsapp-box-body {
  background-color: #efeae2;
  background-image: radial-gradient(#d1c7b8 0.75px, transparent 0.75px);
  background-size: 12px 12px;
  padding: 16px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Bocadillo de Mensaje */
.whatsapp-bubble {
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 10px 10px 10px 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  max-width: 90%;
}

.whatsapp-bubble-author {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.whatsapp-bubble-text {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

.whatsapp-bubble-time {
  font-size: 10px;
  color: #94a3b8;
  text-align: right;
  margin-top: 4px;
}

/* Pie del Widget con Botón de Acción */
.whatsapp-box-footer {
  background: #ffffff;
  padding: 14px 16px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.whatsapp-btn-open-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: #25d366;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn-open-chat:hover {
  background-color: #20ba5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.45);
}

.whatsapp-btn-open-chat svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

@media (max-width: 768px) {
  .whatsapp-widget-container {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float-btn {
    width: 54px;
    height: 54px;
  }
  .whatsapp-float-btn svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-chat-box {
    width: calc(100vw - 40px);
    max-width: 310px;
    bottom: 68px;
  }
}

/* ==========================================================================
   MODAL FLOTANTE CORPORATIVO ECOABI (AGRADECIMIENTO Y CONFIRMACIONES)
   ========================================================================== */
.ecoabi-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  padding: 20px;
}

.ecoabi-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ecoabi-modal-card {
  background: #0f1624;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  padding: 38px 32px 30px;
  max-width: 490px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(10, 77, 133, 0.3);
  text-align: center;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.ecoabi-modal-overlay.active .ecoabi-modal-card {
  transform: translateY(0) scale(1);
}

.ecoabi-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0a4d85, #38bdf8, #0a4d85);
}

.ecoabi-modal-icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 77, 133, 0.2);
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.3);
}

.ecoabi-modal-icon-wrap.is-success {
  background: rgba(14, 165, 233, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.ecoabi-modal-icon-wrap.is-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.ecoabi-modal-icon-wrap svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecoabi-modal-title {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-family: var(--font-primary);
}

.ecoabi-modal-message {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 26px;
  font-weight: 400;
}

.ecoabi-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a4d85 0%, #07355c 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(10, 77, 133, 0.4);
  font-family: var(--font-primary);
}

.ecoabi-modal-btn:hover {
  background: linear-gradient(135deg, #0c5b9e 0%, #0a4d85 100%);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

.ecoabi-modal-btn:active {
  transform: translateY(0);
}

/* Soporte para Modo Claro */
body.theme-light .ecoabi-modal-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 25px 60px rgba(10, 77, 133, 0.18), 0 0 20px rgba(0, 0, 0, 0.08);
}
body.theme-light .ecoabi-modal-title {
  color: #0b1320;
}
body.theme-light .ecoabi-modal-message {
  color: #475569;
}
