/* ============================================================
   TORRENT SERVICIOS — style.css
   Diseño desde cero. Fuentes: Sora (titulares) + Inter (cuerpo)
   ============================================================ */

/* ── Variables CSS (paleta de colores y tipografía) ─────────── */
:root {
  /* Colores de marca */
  --navy:        #0F3460;   /* azul marino oscuro — profundidad, confianza */
  --blue:        #1565C0;   /* azul logo — acciones primarias */
  --blue-light:  #E8F0FE;   /* tono suave — fondos de sección */
  --orange:      #F4511E;   /* naranja — CTA alta conversión */
  --dark:        #0D1B2A;   /* casi negro — texto principal */
  --mid:         #4A5568;   /* gris azulado — texto secundario */
  --surface:     #F7F9FC;   /* gris muy claro — fondo alterno */
  --white:       #FFFFFF;
  --whatsapp:    #25D366;
  --whatsapp-d:  #1EA952;   /* whatsapp hover */

  /* Tipografía */
  --font-head:   'Sora', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;

  /* Espaciado y bordes */
  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.14);

  /* Layout */
  --max-w:       1152px;
  --header-h:    64px;
}

/* ── Reset básico ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--surface);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ── Utilidades ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.text-orange { color: var(--orange); }

.bg-white    { background: var(--white); }
.bg-surface  { background: var(--surface); }

/* ── Botones ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, opacity .2s;
  white-space: nowrap;
}
.btn:hover   { transform: translateY(-1px); }
.btn:active  { transform: translateY(0); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover { background: #d43d10; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-whatsapp:hover { background: var(--whatsapp-d); }

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-lg   { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Animaciones de entrada ─────────────────────────────────── */
/*
  Los elementos con clase "reveal" empiezan invisibles y bajan.
  El JS añade "visible" cuando entran en el viewport.
*/
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Secciones ──────────────────────────────────────────────── */
.section {
  padding-block: 3rem;
}
@media (min-width: 768px) {
  .section { padding-block: 6rem; }
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .section-header { margin-bottom: 3rem; }
}

.section-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .5rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
}

.section-subtitle {
  margin-top: .75rem;
  font-size: 1.0625rem;
  color: var(--mid);
  max-width: 38rem;
  margin-inline: auto;
}

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,.06);
}

/* Layout móvil por defecto: logo a la izquierda, hamburguesa a la derecha */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Navegación: oculta en móvil, visible y CENTRADA en escritorio */
.header-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}
.header-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--mid);
  transition: color .2s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--blue); }
.header-nav a.active {
  color: var(--blue);
}

/* Acciones: teléfono + CTA, alineadas a la derecha */
.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  justify-content: flex-end;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  transition: color .2s;
  white-space: nowrap;
}
.header-phone:hover { color: var(--blue); }

/* Botón de llamada rápida (solo móvil) */
.header-call-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  flex-shrink: 0;
}
.header-call-mobile:active { background: rgba(21,101,192,.2); }

/* Hamburguesa */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .75rem 1.25rem 1.25rem;
  border-top: 1px solid #f0f0f0;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: block;
  padding: .75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid #f5f5f5;
  transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu .btn { margin-top: .75rem; padding-inline: 1.25rem; }

@media (min-width: 900px) {
  /* Header en 3 columnas simétricas: logo (izq en 1fr) · nav (auto, centrada) · acciones (centradas en 1fr) */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
  }
  .header-logo    { justify-self: center; }
  .header-nav     { display: flex; }
  .header-actions { display: flex; justify-self: center; }
  .hamburger      { display: none; }
  .header-call-mobile { display: none; }
}

/* Pantallas más grandes: más respiración entre items del menú */
@media (min-width: 1100px) {
  .header-nav { gap: 2.25rem; }
  .header-inner { gap: 1.5rem; }
}

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Degradado oscuro: más intenso a la izquierda donde está el texto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,27,42,.9) 0%,
    rgba(13,27,42,.65) 60%,
    rgba(13,27,42,.35) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 8rem 4rem;
  max-width: 44rem;
}

/* Badge de ubicación */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: .375rem .875rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  line-height: 1.55;
  margin-bottom: 2rem;
}
.hero-subtitle strong { color: var(--white); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.75rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .875rem;
  color: rgba(255,255,255,.75);
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: .375rem;
}
.icon-check { color: var(--orange); flex-shrink: 0; }

/* ── Secciones desplegables (solo móvil) ────────────────────
   El botón .section-toggle solo se muestra en móvil.
   .collapse-wrap se pliega con grid-template-rows: 0fr → 1fr. */
.section-toggle { display: none; }

@media (max-width: 767px) {
  .section-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    padding: .625rem 1.375rem;
    border: 1.5px solid rgba(21,101,192,.25);
    border-radius: 999px;
    background: var(--white);
    color: var(--blue);
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
  }
  .section-toggle svg { transition: transform .25s ease; }
  .section-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .collapse-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
  }
  .collapse-wrap > * {
    overflow: hidden;
    min-height: 0;
  }
  .collapse-wrap.open { grid-template-rows: 1fr; }
  /* Pequeño margen para que la sombra de las tarjetas no se corte al abrir */
  .collapse-wrap.open > * { padding-bottom: 4px; }
}

/* ════════════════════════════════════════════════════════════
   BRANDS CAROUSEL (CSS-only infinite marquee)
════════════════════════════════════════════════════════════ */
.brands {
  background: var(--white);
  padding-block: 2.5rem 2rem;
  overflow: hidden;
}

.brands-label {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.brands-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.brands-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee 28s linear infinite;
}

.brand-item {
  flex-shrink: 0;
  padding-inline: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-item img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* Logos que se ven pequeños a igual altura (ej. Gree) */
.brand-item img.brand-logo-lg { height: 46px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (min-width: 768px) {
  .brand-item img { height: 44px; }
  .brand-item img.brand-logo-lg { height: 56px; }
  .brand-item { padding-inline: 3rem; }
}

/* ════════════════════════════════════════════════════════════
   STATS
════════════════════════════════════════════════════════════ */
.stats {
  background: var(--navy);
  padding-block: 3.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1rem;
}

/* Los separadores solo se muestran en escritorio */
.stat-separator { display: none; }

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
  }
  .stat-separator {
    display: block;
    width: 1px;
    height: 3rem;
    background: rgba(255,255,255,.15);
    margin-inline: 1rem;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  /* Empieza invisible — JS la anima al entrar en viewport */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.stat-value.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(147,197,253,.8);
}

/* ════════════════════════════════════════════════════════════
   SERVICIOS
════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover {
  border-color: rgba(21,101,192,.2);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  transition: background .2s;
}
.service-card:hover .service-icon { background: rgba(21,101,192,.12); }

.service-body { flex: 1; }
.service-body h3 {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.service-body p {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.55;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  transition: color .2s, gap .2s;
  margin-top: auto;
}
.service-cta:hover { color: var(--orange); gap: .5rem; }

/* Móvil: tarjetas de servicio compactas (icono a la izquierda) */
@media (max-width: 639px) {
  .service-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: .875rem;
    row-gap: .5rem;
    padding: 1rem 1.125rem;
  }
  .service-icon {
    width: 44px;
    height: 44px;
    grid-row: 1 / 3;
  }
  .service-icon svg { width: 22px; height: 22px; }
  .service-body { grid-column: 2; }
  .service-body h3 { font-size: 1rem; margin-bottom: .25rem; }
  .service-body p { font-size: .85rem; }
  .service-cta { grid-column: 2; }
}

/* ════════════════════════════════════════════════════════════
   POR QUÉ NOSOTROS
════════════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1.5px solid var(--blue-light);
  transition: border-color .2s;
}
.why-item:hover { border-color: rgba(21,101,192,.2); }

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(244,81,30,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.why-item h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .375rem;
  line-height: 1.3;
}
.why-item p {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.55;
}

/* Móvil: 2 columnas compactas para acortar la página */
@media (max-width: 639px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .why-item {
    flex-direction: column;
    gap: .625rem;
    padding: 1rem;
  }
  .why-icon { width: 40px; height: 40px; }
  .why-icon svg { width: 22px; height: 22px; }
  .why-item h3 { font-size: .9rem; }
  .why-item p { font-size: .8rem; line-height: 1.5; }
}

/* ════════════════════════════════════════════════════════════
   GALERÍA
════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* Móvil: carrusel horizontal con scroll-snap en vez de rejilla larga */
@media (max-width: 767px) {
  .gallery-grid {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Sangra hasta los bordes de la pantalla para que se vea que hay más fotos */
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    padding-bottom: .5rem;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: 0 0 74%;
    scroll-snap-align: center;
  }
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e5e7eb;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ════════════════════════════════════════════════════════════
   ZONA
════════════════════════════════════════════════════════════ */
.zone-inner {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.zone-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-block: 2rem;
}

.chip {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  background: var(--blue-light);
  color: var(--blue);
  border: 1.5px solid rgba(21,101,192,.15);
}
.chip-primary {
  background: var(--blue);
  color: var(--white);
  border-color: transparent;
}

.zone-note {
  font-size: .9rem;
  color: var(--mid);
}
.zone-note a {
  color: var(--blue);
  font-weight: 600;
}
.zone-note a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   CONTACTO
════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
  }
}

/* Formulario */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 500px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark);
}
.required { color: #ef4444; }
.optional  { color: var(--mid); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a0aec0; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}

/* Estado de error en campos */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
}
.form-group input.error:focus,
.form-group select.error:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.field-error {
  font-size: .8rem;
  color: #ef4444;
  min-height: 1.1em;
}

.form-group textarea { resize: vertical; min-height: 6rem; }

.form-note {
  text-align: center;
  font-size: .8125rem;
  color: var(--mid);
  margin-top: .75rem;
}

/* Mensaje de éxito */
.form-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius);
  color: #166534;
}
.form-success[hidden] { display: none; }
.form-success svg { color: #16a34a; flex-shrink: 0; }
.form-success strong { display: block; font-size: .9375rem; }
.form-success span { font-size: .875rem; }

/* Botones directos de contacto */
.contact-direct-title {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

.contact-btn-wa,
.contact-btn-call {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: .75rem;
  color: var(--white);
  font-weight: 600;
  transition: filter .2s, transform .15s;
}
.contact-btn-wa:hover,
.contact-btn-call:hover { filter: brightness(1.08); transform: translateY(-1px); }

.contact-btn-wa   { background: var(--whatsapp); }
.contact-btn-call { background: var(--blue); }

.contact-btn-wa strong,
.contact-btn-call strong { display: block; font-size: .9375rem; }
.contact-btn-wa span,
.contact-btn-call span   { font-size: .8rem; opacity: .8; }

.contact-info { margin-top: 1rem; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--mid);
  padding: .5rem 0;
}
.contact-info-item a:hover { color: var(--blue); text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: rgba(147,197,253,.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: .875rem;
  line-height: 1.6;
  max-width: 22rem;
}

.footer-col h3 {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(147,197,253,.8);
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.25rem;
}
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: rgba(147,197,253,.5);
  text-align: center;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}
.footer-legal a { color: rgba(147,197,253,.5); }
.footer-legal a:hover { color: var(--white); }

/* ════════════════════════════════════════════════════════════
   PROCESO — Cómo trabajamos (4 pasos)
════════════════════════════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
  list-style: none;
}
@media (min-width: 640px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  position: relative;
  background: var(--white);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: border-color .2s, transform .2s;
}
.process-step:hover {
  border-color: rgba(21,101,192,.18);
  transform: translateY(-2px);
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .375rem;
  line-height: 1.3;
}
.process-step p {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.55;
}

/* Móvil: 2 columnas compactas para acortar la página */
@media (max-width: 639px) {
  .process-steps { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .process-step { padding: 1.125rem 1rem 1rem; }
  .process-num {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-bottom: .625rem;
  }
  .process-step h3 { font-size: .9rem; }
  .process-step p { font-size: .8rem; line-height: 1.5; }
}

/* ════════════════════════════════════════════════════════════
   TESTIMONIOS
════════════════════════════════════════════════════════════ */
.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  margin-top: 1rem;
}
.rating-stars {
  display: inline-flex;
  gap: 2px;
  color: #FFC107;
}
.rating-summary p {
  font-size: .9375rem;
  color: var(--mid);
}
.rating-summary strong {
  color: var(--dark);
  font-size: 1.0625rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
  background: var(--surface);
  border: 1.5px solid var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s, transform .2s;
}
.testimonial:hover {
  border-color: rgba(21,101,192,.25);
  transform: translateY(-2px);
}

.testimonial-stars {
  display: inline-flex;
  gap: 2px;
  color: #FFC107;
}

.testimonial blockquote {
  font-size: .9375rem;
  color: var(--dark);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: .125rem;
  border-top: 1px solid rgba(21,101,192,.1);
  padding-top: .875rem;
  margin-top: auto;
}
.testimonial footer strong {
  font-size: .9375rem;
  color: var(--dark);
}
.testimonial footer span {
  font-size: .8125rem;
  color: var(--mid);
}

/* ════════════════════════════════════════════════════════════
   FAQ — accordion accesible (<details>/<summary>)
════════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 48rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid rgba(21,101,192,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: rgba(21,101,192,.3);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  list-style: none;
  user-select: none;
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--blue);
  transition: transform .25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--mid);
  font-size: .9375rem;
  line-height: 1.6;
}
.faq-content p + p { margin-top: .75rem; }
.faq-content strong { color: var(--dark); }

.faq-bullets {
  list-style: none;
  margin: .75rem 0;
  padding: 0;
  display: grid;
  gap: .375rem;
}
.faq-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: .9rem;
}
.faq-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* ════════════════════════════════════════════════════════════
   FORMULARIO — extras (honeypot, checkbox, error box)
════════════════════════════════════════════════════════════ */
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: .625rem;
  margin-bottom: 1.25rem;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.form-checkbox label {
  font-size: .875rem;
  color: var(--mid);
  line-height: 1.45;
  cursor: pointer;
  font-weight: 400;
}
.form-checkbox label a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 500;
}
.form-checkbox .field-error {
  flex-basis: 100%;
}

.form-error-box {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius);
  color: #991b1b;
}
.form-error-box[hidden] { display: none; }
.form-error-box svg { color: #dc2626; flex-shrink: 0; }
.form-error-box strong { display: block; font-size: .9375rem; }
.form-error-box span { font-size: .875rem; }
.form-error-box a { color: #dc2626; font-weight: 600; text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   FOOTER — extras (certificación, horario)
════════════════════════════════════════════════════════════ */
.footer-cert {
  margin-top: .75rem;
  font-size: .75rem;
  color: rgba(147,197,253,.6);
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.footer-hours {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(147,197,253,.6);
  padding-top: .25rem;
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}

/* ════════════════════════════════════════════════════════════
   ACCESIBILIDAD — focus visible y reduced motion
════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 3px solid rgba(244,81,30,.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respeta usuarios con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .brands-track { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .stat-value {
    opacity: 1;
    transform: none;
  }
}

/* Header ocupa todo el ancho del viewport (logo en extremo izq, acciones en extremo der) */
.site-header .container {
  max-width: none;
}

/* Respeta el header fijo al hacer anchor scroll */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Evita que aparezca el cursor de texto al hacer click en elementos de display */
h1, h2, h3, h4, h5, h6,
.section-eyebrow,
.hero-badge,
.hero-trust,
.stat-value,
.stat-label,
.brands-label,
.chip,
.process-num,
.service-icon,
.why-icon,
.rating-stars,
.testimonial-stars,
.header-nav,
.hero-badge-dot {
  user-select: none;
}

/* ════════════════════════════════════════════════════════════
   BOTÓN FLOTANTE WHATSAPP
════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.125rem;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s, transform .2s, opacity .25s;
}
.whatsapp-float:hover {
  background: var(--whatsapp-d);
  transform: scale(1.05);
}
/* Se oculta cuando la sección de contacto está en pantalla (evita duplicar CTA y tapar el formulario) */
.whatsapp-float.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.whatsapp-float span { display: none; }

@media (min-width: 480px) {
  .whatsapp-float span { display: inline; }
}
@media (min-width: 1024px) {
  .whatsapp-float {
    bottom: 2rem;
    right: 2rem;
  }
}

/* ════════════════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════════════════ */
.gallery-item { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  cursor: zoom-out;
  animation: lb-fade-in .2s ease;
}
@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  padding-inline: 4.5rem;
  max-width: 100vw;
  max-height: 100vh;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  transition: opacity .18s ease;
}
.lightbox-img.loading { opacity: 0; }

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lightbox-caption {
  color: rgba(255,255,255,.72);
  font-size: .875rem;
  margin: 0;
}
.lightbox-counter {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.14);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.26); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.14);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.26); }
.lightbox-prev { left: .75rem; }
.lightbox-next { right: .75rem; }

@media (max-width: 640px) {
  .lightbox-frame  { padding-inline: 3rem; }
  .lightbox-prev   { left: .25rem; }
  .lightbox-next   { right: .25rem; }
  .lightbox-img    { max-width: 92vw; max-height: 74vh; }
}
