/* ============================================
   CY DESARROLLO TÉRMICO - ESTILOS PRINCIPALES
   ============================================ */

/* ── VARIABLES ── */
:root {
  --rojo:       #C8102E;
  --rojo-osc:   #9B0B22;
  --rojo-vivo:  #E8001E;
  --negro:      #FFFFFF;
  --gris-osc:   #F4F4F4;
  --gris-med:   #EBEBEB;
  --gris-borde: #D0D0D0;
  --gris-text:  #555555;
  --blanco:     #0A0A0A;
  --acento:     #B85000;

  --fuente-titulo: 'Bebas Neue', 'Arial Narrow', 'Arial', sans-serif;
  --fuente-cond:   'Barlow Condensed', 'Arial Narrow', 'Arial', sans-serif;
  --fuente-body:   'Barlow', sans-serif;

  --transicion: 0.35s cubic-bezier(0.4,0,0.2,1);
  --sombra-roja: 0 0 40px rgba(200,16,46,0.2);
  --sombra-card: 0 8px 40px rgba(0,0,0,0.12);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--fuente-body);
  background: var(--negro);
  color: var(--blanco);
  overflow-x: hidden;
  line-height: 1.6;
}

html, body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fuente-cond);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.btn:hover::before { transform: scaleX(1); }

.btn-rojo {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: 0 4px 20px rgba(200,16,46,0.4);
}
.btn-rojo:hover {
  background: var(--rojo-vivo);
  box-shadow: 0 6px 30px rgba(200,16,46,0.6);
  transform: translateY(-2px);
}

/* Botón hero — estilo amarillo fuerte */
.hero-btn-wrap .btn-rojo {
  background: #FFCC00;
  color: #0A0A0A;
  border-radius: 999px;
  box-shadow: 0 6px 28px rgba(255,204,0,0.45);
  border: none;
}
.hero-btn-wrap .btn-rojo:hover {
  background: #E6B800;
  box-shadow: 0 8px 36px rgba(230,184,0,0.65);
  transform: translateY(-3px);
  color: #0A0A0A;
}

.btn-outline {
  background: transparent;
  color: var(--blanco);
  border: 2px solid var(--rojo);
}
.btn-outline:hover {
  background: var(--rojo);
  transform: translateY(-2px);
}

.btn-acento {
  background: var(--acento);
  color: var(--negro);
  font-weight: 900;
}
.btn-acento:hover {
  background: #ff8c00;
  transform: translateY(-2px);
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
  backdrop-filter: blur(12px);
  height: 68px;
  border-bottom: 1px solid var(--gris-borde);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-logo-placeholder {
  height: 52px;
  width: 52px;
  border: 2px solid var(--rojo);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  color: var(--rojo);
}

.nav-logo-text {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  letter-spacing: 2px;
  line-height: 1.1;
}
.nav-logo-text span { color: #FFCC00; }
.nav-logo-text small {
  display: block;
  font-family: var(--fuente-cond);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--gris-text);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--fuente-cond);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFCC00;
  transition: color var(--transicion);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--rojo);
  transition: width var(--transicion);
}
.nav-links a:hover { color: var(--rojo); }
.nav-links a:hover::after { width: 100%; }

#navbar.scrolled .nav-links a { color: #0A0A0A; }
#navbar.scrolled .nav-links a:hover { color: var(--rojo); }

.nav-cta { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 20px;
  cursor: pointer;
  z-index: 1001; /* Siempre por encima del menú móvil */
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              opacity 0.3s ease,
              background 0.3s ease;
  transform-origin: center;
}

/* En navbar scrolled (fondo blanco) las líneas deben ser oscuras */
#navbar.scrolled .hamburger span { background: var(--blanco); }

/* Cuando el menú está abierto, forzar las líneas a rojo para que destaque la 'X' */
.hamburger.active span { background: var(--rojo) !important; }

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── MOBILE NAV (MODERN FULLSCREEN) ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mobile-menu a:not(.btn) {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.75;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu a:not(.btn):hover,
.mobile-menu a:not(.btn):active {
  opacity: 1;
  color: #E8001E;
  transform: scale(1.05);
}

.mobile-menu .btn {
  margin-top: 18px;
  font-size: 1rem;
  padding: 14px 34px;
  box-shadow: 0 10px 25px rgba(232,0,30,0.3);
}

/* ── HERO / CARRUSEL ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.carousel-slide.active { opacity: 1; }

.carousel-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease;
}
.carousel-slide.active .carousel-slide-bg { transform: scale(1); }


/* Placeholder slides (antes de tener imágenes reales) */
.slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a0810 50%, #1a1a1a 100%);
}

.slide-placeholder-1 { background: linear-gradient(135deg, #1a1a1a 0%, #3a0810 100%); }
.slide-placeholder-2 { background: linear-gradient(135deg, #1a1a1a 0%, #1a2a1a 100%); }
.slide-placeholder-3 { background: linear-gradient(135deg, #1a1a1a 0%, #1a1a3a 100%); }
.slide-placeholder-4 { background: linear-gradient(135deg, #3a0810 0%, #1a1a1a 100%); }
.slide-placeholder-5 { background: linear-gradient(135deg, #1a1a3a 0%, #3a2000 100%); }
.slide-placeholder-6 { background: linear-gradient(135deg, #1a3020 0%, #1a1a1a 100%); }
.slide-placeholder-7 { background: linear-gradient(135deg, #3a2800 0%, #1a1a1a 100%); }

/* Patrón de fondo para placeholders */
.slide-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(200,16,46,0.03) 60px, rgba(200,16,46,0.03) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(200,16,46,0.03) 60px, rgba(200,16,46,0.03) 61px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.25) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8% 0 8%;
  padding-top: 80px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,134,232,0.2);
  border: 1px solid rgba(74,134,232,0.6);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: var(--fuente-cond);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 28px;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4A86E8;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.hero-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-titulo .rojo { color: #ffffff; }
.hero-titulo .linea-delgada {
  display: block;
  font-size: 0.55em;
  font-family: var(--fuente-cond);
  letter-spacing: 8px;
  color: #ffffff;
  margin-bottom: 8px;
}

.hero-subtitulo {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(245,245,245,0.75);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.hero-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fuente-cond);
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: rgba(245,245,245,0.85);
}

.hero-bullet::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--rojo);
  flex-shrink: 0;
}
.hero-btn-wrap .btn { font-size: 1rem; padding: 16px 40px; }/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 28px; height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transicion), width var(--transicion);
  border: none;
  outline: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.carousel-dot.active {
  background: #4A86E8 !important;
  width: 44px;
}

/* Carousel arrows (moved under the hero button) */
.carousel-arrows-inline {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
  max-width: 320px; /* ancho aproximado del botón */
}
.carousel-arrow {
  width: 50px; height: 50px;
  background: rgba(74,134,232,0.15);
  border: 1px solid rgba(74,134,232,0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transicion);
  color: #4A86E8;
  font-size: 1.2rem;
  outline: none;
}
.carousel-arrow:hover { 
  background: #4A86E8; 
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74,134,232,0.4);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px; right: 8%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--fuente-cond);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245,245,245,0.4);
}

.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(200,16,46,0.8), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SECCIÓN GENÉRICA ── */
section { padding: 100px 8%; }

.section-label {
  font-family: var(--fuente-cond);
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 30px; height: 2px;
  background: var(--rojo);
}

.section-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gris-text);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 60px;
}

/* ── SERVICIOS SHOWCASE PREMIUM ── */
#servicios { background: var(--gris-osc); }

.servicios-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .servicios-showcase-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: start;
  }

  /* Todas en fila, sin escalonamiento */
  .card-correctivo,
  .card-preventivo,
  .card-restauracion,
  .card-polizas,
  .card-renta { transform: none; }
}


.servicio-showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background-color: #0a0a14;
  color: #ffffff;
  min-height: clamp(400px, 70vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  text-align: left;
}

.servicio-showcase-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease-out, filter 800ms ease-out, opacity 800ms ease-out;
  opacity: 0.4;
}

.servicio-showcase-card:hover .servicio-showcase-bg {
  transform: scale(1.1);
  filter: brightness(1.25);
  opacity: 0.7;
}

.servicio-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #05050A 0%, rgba(5,5,10,0.9) 30%, transparent 100%);
  pointer-events: none;
}

.servicio-showcase-number {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: #FFCC00;
  backdrop-filter: blur(12px);
  padding: 10px 20px;
  border-radius: 16px;
  border: 1px solid #E6B800;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: #0A0A0A;
}

.servicio-showcase-content {
  position: relative;
  z-index: 10;
  transition: transform 600ms ease;
}

.servicio-showcase-card:hover .servicio-showcase-content {
  transform: translateY(-12px);
}

.servicio-showcase-icon {
  margin-bottom: 20px;
  opacity: 0.8;
  transition: opacity 300ms ease;
}
.servicio-showcase-card:hover .servicio-showcase-icon { opacity: 1; }
.icon-red { color: #E8001E; }
.icon-blue { color: #4A86E8; }

.servicio-showcase-title {
  font-family: var(--fuente-titulo);
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1;
}

.servicio-showcase-desc {
  font-family: sans-serif;
  color: #B3B3B3;
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 28rem;
}

.servicio-showcase-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  color: #CCCCCC;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.servicio-showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}

.servicio-showcase-list li span {
  font-weight: bold;
  font-size: 1.125rem;
  margin-top: 2px;
}

.btn-showcase-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFCC00;
  color: #0A0A0A;
  font-weight: bold;
  padding: 16px 32px;
  border-radius: 9999px;
  transition: all 300ms ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(255,204,0,0.3);
  text-decoration: none;
}
.btn-showcase-yellow:hover {
  background-color: #E6B800;
  box-shadow: 0 0 30px rgba(255,204,0,0.5);
  color: #0A0A0A;
}

.btn-showcase-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 2px solid #1C3A82;
  color: #ffffff;
  font-weight: bold;
  padding: 14px 32px;
  border-radius: 9999px;
  transition: all 300ms ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
  text-decoration: none;
}
.btn-showcase-outline:hover {
  background-color: rgba(28, 58, 130, 0.3);
  color: white;
}

/* ── IMAGEN DESTACADA SERVICIOS ── */
.servicios-img-flotante {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  animation: img-flotante 4s ease-in-out infinite;
}

@keyframes img-flotante {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); box-shadow: 0 25px 45px rgba(0,0,0,0.15); }
  100% { transform: translateY(0); }
}

/* ── EMERGENCIA NUEVA (RECONSTRUIDA) ── */
.seccion-alerta-blanca {
  background-color: #FFFFFF;
  padding: 80px 5%;
  text-align: center;
  border-top: 1px solid #EEEEEE;
  border-bottom: 1px solid #EEEEEE;
}

.alerta-contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

.alerta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(232, 0, 30, 0.1);
  color: #E8001E;
  border: 1px solid #E8001E;
  padding: 8px 16px;
  font-family: var(--fuente-cond);
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.alerta-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #000000;
  line-height: 1;
  margin-bottom: 50px;
}

.alerta-contenido {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  text-align: left;
}

/* ── CARRUSEL DE EMERGENCIA ── */
.alerta-carousel {
  flex: 1;
  max-width: 520px;
  width: 100%;
  position: relative;
  aspect-ratio: 4 / 3;
}

.alerta-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.alerta-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.alerta-slide.active { opacity: 1; }

.alerta-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Flechas del carrusel de emergencia */
.alerta-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(232, 0, 30, 0.85);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  outline: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.alerta-arrow:hover {
  background: #C8001E;
  transform: translateY(-50%) scale(1.1);
}
.alerta-prev { left: 10px; }
.alerta-next { right: 10px; }

/* Dots del carrusel de emergencia */
.alerta-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.alerta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1.5px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.alerta-dot.active {
  background: #E8001E;
  border-color: #E8001E;
  transform: scale(1.3);
}

.alerta-textos-wrapper {
  flex: 1;
  max-width: 600px;
  padding-top: 10px;
}

.alerta-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alerta-item {
  font-family: var(--fuente-body);
  font-size: 1.15rem;
  color: #000000;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alerta-item::before {
  content: '✓';
  color: #E8001E;
  font-weight: bold;
  font-size: 1.4rem;
}

.alerta-btn {
  display: inline-block;
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* ── VIDEO PROMOCIONAL ── */
.video-wrapper {
  position: relative;
  max-width: 380px; /* Un poco más ancho para compensar que ahora es más cuadrado */
  margin: 40px auto 60px; /* Margen inferior extra para dar espacio a la imagen grande */
}

.video-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid #333;
  background: #000;
  aspect-ratio: 4 / 5; /* Aspecto un poco más cuadrado (vertical pero menos alargado) */
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.video-corner-img {
  position: absolute;
  top: -40px;
  right: -150px; /* Aún más a la derecha */
  width: 300px; /* Imagen aún más grande */
  height: auto;
  z-index: 10;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  object-fit: contain;
  border: 4px solid #fff; /* Opcional: un pequeño borde blanco para destacar */
  background-color: #fff; /* Opcional: fondo blanco por si la imagen tiene transparencias */
  pointer-events: none; /* Permite que los clics pasen a través de la imagen hacia el video */
}

/* ── VIDEO: LAYOUT MÓVIL (Escalado idéntico a desktop) ── */
@media (max-width: 768px) {
  .video-wrapper {
    max-width: 240px;
    margin: 40px auto 60px;
  }
  .video-corner-img {
    width: 200px;
    top: -20px;
    right: -90px;
  }
}

@media (max-width: 480px) {
  .video-wrapper {
    max-width: 180px;
    margin: 40px auto 60px;
  }
  .video-corner-img {
    width: 150px;
    top: -15px;
    right: -70px;
  }
}

/* ── CALDERAS REMANUFACTURADAS ── */
#calderas {
  background: var(--negro);
  position: relative;
  overflow: hidden;
}

#calderas::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,0.06) 0%, transparent 70%);
}

.calderas-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.calderas-visual {
  position: relative;
  height: auto;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}

.calderas-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.calderas-visual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--gris-text);
}

.calderas-visual-placeholder span { font-size: 4rem; opacity: 0.3; }
.calderas-visual-placeholder p { font-family: var(--fuente-cond); letter-spacing: 2px; font-size: 0.8rem; text-transform: uppercase; }

.calderas-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rojo-osc), var(--rojo-vivo), var(--rojo-osc));
}

.calderas-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

.spec-item {
  background: var(--gris-med);
  border: 1px solid var(--gris-borde);
  padding: 18px 20px;
  border-radius: 2px;
  transition: var(--transicion);
}

.spec-item:hover { border-color: var(--rojo); }

.spec-label {
  font-family: var(--fuente-cond);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris-text);
  margin-bottom: 4px;
}

.spec-valor {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  color: var(--blanco);
}

/* ── OTROS SERVICIOS (instalación, maniobras) ── */
.servicios-otros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
}

.otro-servicio {
  background: var(--gris-med);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  transition: var(--transicion);
}

.otro-servicio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,16,46,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transicion);
}

.otro-servicio:hover::before { opacity: 1; }
.otro-servicio:hover { transform: translateY(-3px); }

.otro-numero {
  font-family: var(--fuente-titulo);
  font-size: 8rem;
  color: rgba(200,16,46,0.06);
  line-height: 1;
  position: absolute;
  top: 16px; right: 24px;
  transition: color var(--transicion);
}
.otro-servicio:hover .otro-numero { color: rgba(200,16,46,0.14); }

.otro-servicio .section-label { margin-bottom: 20px; }

.otro-servicio h3 {
  font-family: var(--fuente-titulo);
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.otro-servicio-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  display: block;
}

.otro-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.otro-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--gris-text);
  line-height: 1.5;
}
.otro-bullet::before { content: '✦'; color: var(--rojo); flex-shrink: 0; font-size: 0.7rem; margin-top: 3px; }

/* ── CASOS DE ÉXITO ── */
#casos { 
  position: relative;
  background: linear-gradient(-45deg, #00509E, #003366, #0074E4, #00509E);
  background-size: 400% 400%;
  animation: gradientPan 6s ease infinite; /* Animación más rápida */
  overflow: hidden;
  z-index: 1;
}

/* Forzamos el texto a blanco para que contraste bien con el azul fuerte */
#casos .section-titulo,
#casos .section-desc {
  color: #FFFFFF;
}
#casos .section-desc {
  opacity: 0.9;
}

/* Textura de puntos sutiles para darle el toque premium */
#casos::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: radial-gradient(rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  transform: rotate(-15deg);
  z-index: -1;
  pointer-events: none;
  animation: textureMove 20s linear infinite; /* Textura moviéndose al doble de velocidad */
}

@keyframes gradientPan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes textureMove {
  0% { transform: rotate(-15deg) translateY(0); }
  100% { transform: rotate(-15deg) translateY(-50px); }
}

/* Pausa las animaciones de #casos cuando está fuera de pantalla: mismo diseño visible,
   cero repintado/estilo continuo en móvil (mejora TBT/INP sin alterar el look). */
#casos.anim-paused { animation-play-state: paused; }
#casos.anim-paused::before { animation-play-state: paused; }

/* Respeta la preferencia del usuario: sin movimiento (accesibilidad + rendimiento) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto !important; }
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px 0;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .casos-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

/* Centrado en móvil */
@media (max-width: 899px) {
  #casos .reveal {
    text-align: center;
  }
  #casos .section-label {
    justify-content: center;
  }
  #casos .section-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .casos-grid {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

.caso-card {
  position: relative;
  aspect-ratio: 3/2;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
  background-color: #ffffff;
  border: 2px solid var(--rojo);
  border-radius: 10px;
  padding: 16px;
}

.caso-card:hover {
  transform: scale(1.05);
  border-color: #ff3344;
  box-shadow: 0 0 15px rgba(232,0,30,0.4);
}

.caso-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all var(--transicion);
  display: block;
}
.caso-card:hover img { transform: scale(1.05); }

.caso-overlay { display: none; }

/* ── CÓMO TRABAJAMOS ── */
#como-trabajamos { background: var(--negro); }

.como-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.proceso-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.paso {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gris-borde);
  transition: var(--transicion);
}
.paso:last-child { border-bottom: none; }
.paso:hover { padding-left: 12px; }

.paso-num {
  font-family: var(--fuente-titulo);
  font-size: 3.5rem;
  color: rgba(200,16,46,0.25);
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transicion);
}
.paso:hover .paso-num { color: rgba(200,16,46,0.6); }

.paso-content h4 {
  font-family: var(--fuente-titulo);
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--blanco);
}

.paso-content p {
  font-size: 0.9rem;
  color: var(--gris-text);
  line-height: 1.7;
}

.mision-vision {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 100px;
}

.mv-card {
  background: var(--gris-med);
  border: 1px solid var(--gris-borde);
  border-top: 3px solid var(--rojo);
  padding: 36px 32px;
}

.mv-card h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--rojo);
}

.mv-card p {
  font-size: 0.92rem;
  color: var(--gris-text);
  line-height: 1.75;
}

/* ── MANO DE OBRA ── */
#mano-obra {
  background: #111111;
  color: #FFFFFF;
  text-align: center;
  padding: 100px 8%;
}

.mano-obra-inner { max-width: 900px; margin: 0 auto; }

.mano-obra-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.mano-obra-titulo span { color: var(--rojo); }

.mano-obra-sub {
  font-family: var(--fuente-cond);
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #CCCCCC;
  margin-bottom: 60px;
}

.mano-obra-img-wrap {
  position: relative;
  width: 100%;
  height: auto;
  background: transparent;
  border: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mano-obra-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.mano-obra-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--gris-borde);
}
.mano-obra-img-placeholder span { font-size: 4rem; }
.mano-obra-img-placeholder p {
  font-family: var(--fuente-cond);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mano-obra-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rojo-osc), var(--rojo-vivo), var(--rojo-osc));
}  /* ── BLOG HOME (ARTÍCULOS RECIENTES) ── */
  #blog {
    background: var(--gris-osc);
  }

  .blog-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
  }

  .blog-home-card {
    background: #FFFFFF;
    border: 1px solid var(--gris-borde);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transicion);
  }

  .blog-home-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-card);
    border-color: var(--rojo);
  }

  .blog-home-card-link { display: block; height: 100%; }

  .blog-home-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
  }

  .blog-home-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transicion);
  }

  .blog-home-card:hover .blog-home-img-wrap img { transform: scale(1.06); }

  .blog-home-cat {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--rojo);
    color: #FFFFFF;
    font-family: var(--fuente-cond);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 2px;
  }

  .blog-home-body { padding: 24px; }

  .blog-home-title {
    font-family: var(--fuente-titulo);
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--blanco);
  }

  .blog-home-excerpt {
    font-size: 0.95rem;
    color: var(--gris-text);
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .blog-home-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fuente-cond);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--rojo);
  }

  .blog-home-more svg { transition: transform var(--transicion); }
  .blog-home-card:hover .blog-home-more svg { transform: translateX(4px); }

  @media (max-width: 900px) {
    .blog-home-grid { grid-template-columns: 1fr; }
  }

  /* ── CONTACTO / CTA FINAL ── */
#contacto {
  background: linear-gradient(135deg, #F4F4F4 0%, #fff0f0 50%, #F4F4F4 100%);
  padding: 100px 8%;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--rojo);
}

#contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,16,46,0.08) 0%, transparent 60%);
}

.contacto-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.contacto-info h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.contacto-info h2 span { color: var(--rojo); }

.contacto-info p {
  font-size: 1rem;
  color: var(--gris-text);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.dato-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--blanco);
}

.dato-icon {
  width: 42px; height: 42px;
  background: rgba(200,16,46,0.12);
  border: 1px solid rgba(200,16,46,0.25);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dato-text { display: flex; flex-direction: column; }
.dato-label { font-family: var(--fuente-cond); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gris-text); margin-bottom: 2px; }
.dato-valor { font-size: 0.95rem; }

.mapa-wrap {
  position: relative;
  height: 380px;
  background: var(--gris-med);
  border: 1px solid var(--gris-borde);
  overflow: hidden;
}

.mapa-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(30%);
}

.mapa-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rojo-osc), var(--rojo-vivo), var(--rojo-osc));
}

/* ── FOOTER ── */
footer {
  background: #111111;
  border-top: 3px solid var(--rojo);
  padding: 60px 8% 30px;
  color: #F5F5F5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.footer-logo-placeholder {
  width: 70px; height: 70px;
  border: 2px solid var(--rojo);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fuente-titulo);
  font-size: 1.8rem;
  color: var(--rojo);
}

.footer-nombre {
  font-family: var(--fuente-titulo);
  font-size: 1.5rem;
  letter-spacing: 2px;
  line-height: 1.1;
  color: #F5F5F5;
}
.footer-nombre span { color: #FFCC00; }
.footer-nombre small {
  display: block;
  font-family: var(--fuente-cond);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: #888888;
  font-weight: 400;
  margin-top: 4px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #888888;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--fuente-titulo);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: #F5F5F5;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col li a {
  font-size: 0.88rem;
  color: #888888;
  transition: color var(--transicion);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col li a::before { content: '›'; color: var(--rojo); }
.footer-col li a:hover { color: #F5F5F5; }

footer nav h4 { color: #F5F5F5; }
footer nav li a { color: #888888; }
footer nav li a:hover { color: #F5F5F5; }

.footer-bottom {
  border-top: 1px solid #2A2A2A;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #666666;
}

.footer-bottom span { color: var(--rojo); }

/* ── FOOTER POWERED BY AISBIT ── */
.footer-powered {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #2A2A2A;
  display: flex;
  justify-content: flex-start;
}

.footer-powered a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #888888;
  letter-spacing: 0.3px;
  transition: color var(--transicion);
}

.footer-powered a:hover { color: #F5F5F5; }

.footer-powered img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform var(--transicion);
}

.footer-powered a:hover img { transform: scale(1.15); }

.footer-powered strong {
  color: #F5F5F5;
  font-weight: 700;
}

/* ── WHATSAPP FLOTANTE ── */
#whatsapp-btn {
  position: fixed;
  bottom: 36px; right: 36px;
  z-index: 800;
  width: 62px; height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  transition: var(--transicion);
  cursor: pointer;
}

#whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37,211,102,0.65);
}

#whatsapp-btn svg { width: 32px; height: 32px; fill: #fff; }

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: ws-pulse 2s ease-out infinite;
}

@keyframes ws-pulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* ── WHATSAPP TOOLTIP ── */
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #1a1a2e;
  color: #ffffff;
  font-family: sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 8px;
  border-left: 3px solid #25D366;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Flecha del tooltip */
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: #1a1a2e;
}

#whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.rojo-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--rojo), transparent);
  opacity: 0.6;
}

/* ── RESPONSIVE ── */
@media (min-width: 1024px) {
  .ocultar-en-desktop { display: none !important; }
}

@media (max-width: 1024px) {
  .calderas-layout { grid-template-columns: 1fr; gap: 48px; }
  .servicios-otros { grid-template-columns: 1fr; }
  .como-layout { grid-template-columns: 1fr; gap: 60px; }
  .contacto-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mision-vision { position: static; }
}

/* ── HERO COMPACTO EN LAPTOPS PEQUEÑAS (pantallas cortas: 1366x768, 1280x720, 1536x864...) ── */
@media (min-width: 769px) and (max-width: 1600px) and (max-height: 900px) {
  #hero { min-height: 560px; }

  .hero-content { padding-top: 60px; }

  .hero-badge {
    margin-bottom: 16px;
    padding: 6px 14px;
    font-size: 0.68rem;
    letter-spacing: 2.5px;
  }

  .hero-titulo {
    font-size: clamp(2.5rem, 5.2vw, 5.2rem);
    line-height: 0.95;
    margin-bottom: 14px;
  }

  .hero-subtitulo {
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    line-height: 1.55;
    margin-bottom: 18px;
    max-width: 560px;
  }

  .hero-bullets { gap: 6px; margin-bottom: 20px; }
  .hero-bullet { font-size: 0.9rem; }
  .hero-bullet::before { width: 16px; }

  .hero-btn-wrap .btn { font-size: 0.9rem; padding: 13px 32px; }

  .carousel-arrows-inline { margin-top: 14px; }
  .carousel-arrow { width: 42px; height: 42px; font-size: 1.05rem; }

  .carousel-dots { bottom: 22px; }
  .hero-scroll { bottom: 22px; }
  .scroll-line { height: 36px; }

  /* Tarjetas de Servicios Principales: textos y espaciado más compactos */
  .servicio-showcase-card {
    min-height: clamp(360px, 62vh, 500px);
    padding: 24px;
  }
  .servicio-showcase-number {
    top: 18px; right: 18px;
    padding: 8px 16px;
    font-size: 1.05rem;
  }
  .servicio-showcase-icon { margin-bottom: 14px; }
  .servicio-showcase-icon svg { width: 30px; height: 30px; }
  .servicio-showcase-title {
    font-size: 2.3rem;
    margin-bottom: 8px;
  }
  .servicio-showcase-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .servicio-showcase-list {
    gap: 8px;
    margin-bottom: 20px;
  }
  .servicio-showcase-list li {
    gap: 8px;
    line-height: 1.35;
    font-size: 0.9rem;
  }
  .servicio-showcase-list li span { font-size: 1rem; }
  .btn-showcase-yellow {
    padding: 13px 26px;
    font-size: 0.8rem;
  }
  .btn-showcase-outline {
    padding: 12px 26px;
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .alerta-contenido {
    flex-direction: column-reverse; /* Text first, image bottom */
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section { padding: 70px 5%; }
  #hero { min-height: 100svh; }
  .hero-content { padding: 0 5%; padding-top: 80px; }
  .hero-titulo { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .carousel-arrow { width: 44px; height: 44px; font-size: 1rem; }
  .servicios-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .calderas-specs { grid-template-columns: 1fr; }
  .emergencia-grid { grid-template-columns: 1fr; }
  #whatsapp-btn { bottom: 24px; right: 24px; width: 56px; height: 56px; }

  /* Navbar mobile */
  #navbar { padding: 0 4%; }
  .nav-logo { gap: 10px; min-width: 0; }
  .nav-logo-img { height: 36px; width: auto; }
  .nav-logo-text { font-size: 1.1rem; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-logo-text small { display: none; }
}

@media (max-width: 480px) {
  .hero-bullets { display: none; }
  .section-titulo { font-size: 2rem; }
  section { padding: 60px 5%; }

  /* Servicios showcase más compactas en móvil pequeño */
  .servicio-showcase-card { border-radius: 20px; padding: 20px; }
  .servicio-showcase-title { font-size: 2rem; }

  /* Emergencia: carrusel más bajo */
  .alerta-carousel { aspect-ratio: 4/3; }

  /* Navbar ajustado */
  .nav-logo-text { font-size: 1rem; }
}

@media (max-width: 360px) {
  section { padding: 50px 4%; }
  .hero-content { padding: 0 4%; padding-top: 80px; }
  .hero-titulo { font-size: 2rem; }
  .section-titulo { font-size: 1.8rem; }
  .btn { padding: 12px 22px; font-size: 0.85rem; }
  .otro-servicio { padding: 40px 24px; }
  .alerta-titulo { font-size: 2rem; }


}

/* ────────────────────────────────────────────────
   FAQ (PREGUNTAS FRECUENTES)
──────────────────────────────────────────────── */
#faq {
  padding: 90px 20px;
  background: var(--negro);
}

.faq-contenedor {
  max-width: 900px;
  margin: 0 auto;
}

.faq-lista {
  margin-top: 44px;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--negro);
  border: 1px solid var(--gris-borde);
  border-left: 4px solid var(--rojo);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transicion);
}

.faq-item[open] {
  border-color: var(--rojo);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--fuente-cond);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.4px;
  color: var(--blanco);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gris-med);
  color: var(--rojo);
  font-family: var(--fuente-body);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transition: var(--transicion);
}

.faq-item[open] summary::after {
  content: '−';
  background: var(--rojo);
  color: var(--negro);
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--gris-text);
  line-height: 1.7;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .faq-item summary { font-size: 1.02rem; padding: 15px 16px; }
  .faq-item p { padding: 0 16px 18px; }
}

/* ── ZONAS DE SERVICIO (SEO LOCAL) ── */
#zonas { background: var(--gris-osc); }

.zonas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zona-item {
  background: #FFFFFF;
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  transition: var(--transicion);
}
.zona-item:hover {
  border-color: var(--rojo);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.zona-item a {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: #0A0A0A;
  font-family: var(--fuente-cond);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.zona-servicio {
  display: block;
  font-family: var(--fuente-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gris-text);
  margin-top: 4px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .zonas-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .zonas-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   PERFORMANCE MÓVIL: content-visibility bajo el fold
   El navegador difiere el render de las secciones fuera de
   pantalla → mejora LCP/INP sin cambiar el diseño.
   contain-intrinsic-size evita saltos de layout (CLS).
════════════════════════════════════════════════════════ */
#emergencia, #calderas, #instalacion-maniobras, #video-promocional,
#zonas, #casos, #como-trabajamos, #mano-obra, #blog, #faq, #contacto, footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
