/*
╔══════════════════════════════════════════════════════════╗
║   MARER Soluciones Contables — Estilos Premium           ║
║   Archivo: style.css                                     ║
║                                                          ║
║   ESTRUCTURA DEL ARCHIVO:                                ║
║   1.  Variables globales (colores, fuentes, sombras)     ║
║   2.  Reset y estilos base                               ║
║   3.  Contenedor y tipografía de secciones               ║
║   4.  Animaciones (@keyframes)                           ║
║   5.  Botones                                            ║
║   6.  Header (barra de navegación fija)                  ║
║   7.  Hero (primera pantalla)                            ║
║   8.  Tarjeta flotante de servicios                      ║
║   9.  Sección Servicios                                  ║
║   10. Sección Compromiso                                 ║
║   11. Sección Sobre Nosotros                             ║
║   12. Sección Contacto                                   ║
║   13. Sección Ubicación                                  ║
║   14. Footer                                             ║
║   15. Animaciones de entrada al hacer scroll             ║
║   16. Responsive (adaptación a móviles y tablets)        ║
╚══════════════════════════════════════════════════════════╝
*/


/* ══════════════════════════════════════════════════════════
   1. VARIABLES GLOBALES
   Las variables CSS (--nombre) permiten reusar valores en
   todo el archivo. Si cambias el color aquí, cambia en TODA
   la página. Se definen en :root para que sean accesibles
   desde cualquier selector.
══════════════════════════════════════════════════════════ */
:root {
  /* Colores de la marca MARER */
  --primary:      #0d4b90;   /* Azul oscuro principal */
  --primary-dark: #0a3d78;   /* Azul más oscuro para hover */
  --secondary:    #48abda;   /* Celeste de acento */

  /* Colores de fondo y texto */
  --bg-light:  #F6F7F9;   /* Gris muy claro para fondos alternos */
  --text-dark: #2B2B2B;   /* Casi negro para textos principales */
  --text-gray: #6B7280;   /* Gris medio para textos secundarios */
  --white:     #FFFFFF;
  --border:    #E5E9EF;   /* Gris claro para bordes y separadores */

  /* Sombras (usan rgba del azul primario para ser más elegantes que el negro) */
  --shadow-sm: 0 2px 12px rgba(13,75,144,.07);   /* Sombra muy sutil */
  --shadow-md: 0 8px 32px rgba(13,75,144,.12);   /* Sombra media */
  --shadow-lg: 0 20px 60px rgba(13,75,144,.16);  /* Sombra grande */
  --shadow-xl: 0 32px 80px rgba(13,75,144,.22);  /* Sombra extra grande */

  /* Curva de animación suave (inspirada en la física real) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Fuentes tipográficas */
  --font-head: 'Barlow', sans-serif;    /* Títulos y botones */
  --font-body: 'DM Sans', sans-serif;   /* Párrafos y textos */

  /* Ancho máximo del contenido */
  --max-w: 1180px;

  /* Alto del header fijo */
  --header-h: 72px;
}


/* ══════════════════════════════════════════════════════════
   2. RESET Y ESTILOS BASE
   Elimina los estilos por defecto del navegador para partir
   desde una base limpia y consistente entre Chrome, Firefox,
   Safari, etc.
══════════════════════════════════════════════════════════ */

/* box-sizing: border-box → el padding y border NO aumentan el tamaño del elemento */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;           /* Scroll suave al hacer click en links "#" */
  -webkit-font-smoothing: antialiased; /* Fuentes más nítidas en Mac */
  text-rendering: optimizeLegibility; /* Mejor espaciado entre letras */
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;   /* Espaciado entre líneas de texto */
  overflow-x: hidden;  /* Evita scroll horizontal no deseado */
}

img { display: block; max-width: 100%; }  /* Las imágenes nunca se salen de su contenedor */
a   { text-decoration: none; color: inherit; }  /* Links sin subrayado por defecto */
ul  { list-style: none; }  /* Listas sin viñetas */


/* ══════════════════════════════════════════════════════════
   3. CONTENEDOR Y TIPOGRAFÍA DE SECCIONES
══════════════════════════════════════════════════════════ */

/* Contenedor centrado con ancho máximo y padding lateral */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;                          /* Centrado horizontal */
  padding-inline: clamp(20px, 5vw, 48px);      /* Padding que se adapta al ancho */
}
/* clamp(min, preferido, max) → en pantalla chica: 20px, crece con el viewport, max 48px */

/* Etiqueta pequeña sobre los títulos ("Nuestros Servicios", "Por qué elegirnos") */
.section-label {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* Título principal de cada sección */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);  /* Se adapta al ancho de pantalla */
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.22;
  margin-bottom: 16px;
}

/* Línea de acento animada bajo el título
   Empieza con width: 0 y crece a 56px cuando se agrega .underline-active
   (JavaScript agrega esa clase cuando el título entra en pantalla) */
.section-title.title-underline {
  position: relative;
  display: inline-block;
}
.section-title.title-underline::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;                        /* Empieza invisible */
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin-top: 10px;
  transition: width .85s var(--ease-out);  /* Animación suave al crecer */
}
.section-title.title-underline.underline-active::after {
  width: 56px;  /* Aparece cuando JS agrega esta clase */
}

/* Subtítulo descriptivo de cada sección */
.section-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
  max-width: 560px;
  line-height: 1.75;
}

/* Encabezado de sección centrado (label + título + subtítulo) */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-subtitle { margin-inline: auto; }
.section-header .section-title    { display: block; }
.section-header .section-title.title-underline::after { margin-inline: auto; }


/* ══════════════════════════════════════════════════════════
   4. ANIMACIONES (@keyframes)
   @keyframes define los pasos de una animación CSS.
   Se aplican con la propiedad `animation` en cada elemento.
   Nombre de la animación → qué hace → dónde se aplica
══════════════════════════════════════════════════════════ */

/* Rotación completa en sentido horario (anillos del hero) */
@keyframes spin-cw  { to { transform: rotate(360deg);  } }

/* Rotación completa en sentido anti-horario */
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

/* Flotación suave vertical (foto del hero, badges) */
@keyframes float-y {
  0%, 100% { transform: translateY(0);     }
  50%       { transform: translateY(-12px); }
}

/* Flotación más pequeña (para elementos secundarios) */
@keyframes float-y-sm {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-6px); }
}

/* Flotación de badges */
@keyframes float-badge {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-5px); }
}

/* Forma orgánica que cambia suavemente (blob detrás de la foto) */
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
  33%       { border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%; }
  66%       { border-radius: 55% 45% 60% 40% / 45% 60% 40% 55%; }
}

/* Pulso de luz (se expande y se encoge) */
@keyframes glow-pulse {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%       { transform: scale(1.18); opacity: 1;   }
}

/* Movimiento de los degradados de fondo del hero */
@keyframes grad-drift-1 {
  0%, 100% { transform: scale(1)    translate(0, 0);      opacity: .7; }
  33%       { transform: scale(1.12) translate(-4%, 3%);   opacity: 1;  }
  66%       { transform: scale(.94)  translate(3%, -3%);   opacity: .6; }
}
@keyframes grad-drift-2 {
  0%, 100% { transform: scale(1)    translate(0, 0);     opacity: .8; }
  50%       { transform: scale(1.18) translate(3%, -4%);  opacity: .5; }
}

/* Pulso del punto verde del badge del hero */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(72,171,218,.22); }
  50%       { box-shadow: 0 0 0 7px rgba(72,171,218,.08); }
}

/* Pulso del punto luminoso en el anillo giratorio */
@keyframes ring-dot {
  0%, 100% { opacity: .9; transform: translateX(-50%) scale(1);  }
  50%       { opacity: .5; transform: translateX(-50%) scale(.7); }
}

/* Flotación de tarjeta métrica central (preserva el translateX del posicionamiento) */
@keyframes metric-float-main {
  0%, 100% { transform: translateX(-50%) translateY(0);    }
  50%       { transform: translateX(-50%) translateY(-7px); }
}
/* Flotación de tarjeta métrica superior */
@keyframes metric-float-top {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-7px); }
}
/* Flotación de tarjeta métrica inferior */
@keyframes metric-float-bottom {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-5px); }
}

/* Flotación de tarjetas de contacto */
@keyframes contact-float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-5px); }
}

/* Movimiento de los orbs (esferas de luz del hero) */
@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0)       scale(1);    }
  33%       { transform: translate(-20px, 15px) scale(1.08); }
  66%       { transform: translate(15px, -20px) scale(.94);  }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0)      scale(1);   }
  50%       { transform: translate(18px, -14px) scale(1.1); }
}
@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0);       }
  50%       { transform: translate(-12px, 18px); }
}

/* Movimiento de orbs decorativos en otras secciones */
@keyframes section-orb {
  0%, 100% { transform: translateY(0)     scale(1);    }
  50%       { transform: translateY(-24px) scale(1.06); }
}


/* ══════════════════════════════════════════════════════════
   5. BOTONES
   Sistema de botones con 3 variantes:
     · btn--primary  → azul sólido (acción principal)
     · btn--outline  → borde azul, fondo transparente
     · btn--ghost    → fondo azul muy sutil
   Todos tienen efecto hover y click (microinteracción)
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 9px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .22s var(--ease-out),
              box-shadow .22s var(--ease-out),
              background .2s ease,
              border-color .2s ease,
              color .2s ease;
  white-space: nowrap;   /* El texto nunca se parte en dos líneas */
  position: relative;
  overflow: hidden;
  user-select: none;     /* No se puede seleccionar el texto del botón */
}

/* Capa de brillo que aparece al hacer hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
  pointer-events: none;
}
.btn:hover::after { background: rgba(255,255,255,.07); }

/* El botón se encoge un poco al hacer click */
.btn:active {
  transform: scale(0.96) !important;
  transition-duration: .08s !important;
}

/* Variante azul sólida */
.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,75,150,.38), 0 2px 6px rgba(13,75,150,.18);
}

/* Variante con solo borde */
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(13,75,150,.28);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,75,150,.28);
}

/* Variante fantasma (fondo muy sutil) */
.btn--ghost {
  background: rgba(13,75,150,.06);
  color: var(--primary);
  border-color: transparent;
}
.btn--ghost:hover {
  background: rgba(13,75,150,.1);
  transform: translateY(-2px);
}
/* La flecha del botón ghost se mueve al hacer hover */
.btn--ghost svg { transition: transform .22s var(--ease-out); }
.btn--ghost:hover svg { transform: translateX(3px); }


/* ══════════════════════════════════════════════════════════
   6. HEADER — Barra de navegación fija
   Empieza transparente sobre el hero.
   Cuando el usuario hace scroll hacia abajo, JavaScript
   agrega la clase .scrolled y se activa el efecto de vidrio
   (backdrop-filter: blur).
══════════════════════════════════════════════════════════ */
.header {
  position: fixed;            /* Siempre visible aunque se haga scroll */
  top: 0; left: 0; right: 0;
  z-index: 100;               /* Encima de todo el contenido */
  height: var(--header-h);
  /* Estado inicial: completamente transparente */
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  /* Transición suave al cambiar de estado */
  transition: background .45s ease, border-color .45s ease,
              box-shadow .45s ease, backdrop-filter .45s ease;
}

/* Estado al hacer scroll: vidrio esmerilado semi-transparente */
.header.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: rgba(229,233,239,.65);
  box-shadow: 0 1px 0 rgba(229,233,239,.65), 0 4px 24px rgba(13,75,150,.06);
}

/* Contenedor interno del header: logo | nav | cta | burger */
.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
}

/* ── Logo del header ──────────────── */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__logo-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(13,75,144,.22));
  transition: transform .3s var(--ease-out);
}
/* El ícono rota levemente al pasar el cursor por el logo */
.header__logo:hover .header__logo-icon { transform: scale(1.06) rotate(-3deg); }
.header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}
.header__logo-text strong {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--primary);
}
.header__logo-text small {
  font-family: var(--font-head);
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--text-gray);
}
/* Fallback por si se usa la imagen del logo en lugar del SVG */
.header__logo img { height: 42px; width: auto; object-fit: contain; }

/* ── Navegación ─────────────────────── */
.header__nav      { flex: 1; }  /* Ocupa el espacio disponible */
.header__nav-list { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-gray);
  padding: 6px 14px;
  border-radius: 7px;
  transition: color .2s, background .2s;
}
.nav-link:hover,
.nav-link.active {            /* .active lo agrega JavaScript según la sección visible */
  color: var(--primary);
  background: rgba(13,75,150,.07);
}

/* Botón CTA del header */
.header__cta { flex-shrink: 0; padding: 10px 22px; }

/* ── Menú hamburguesa (solo en móvil) ── */
.header__burger {
  display: none;           /* Oculto en desktop */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.header__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
/* Animación del ícono hamburguesa → X al abrir el menú */
.header__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════════════════════
   7. HERO — Primera pantalla de la página
   Tiene múltiples capas superpuestas para crear profundidad:
     position: relative → permite posicionar elementos hijos
     overflow: hidden   → los anillos grandes no sobresalen
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 96px);  /* Espacio para el header fijo */
  padding-bottom: 148px;
  background: #eef3f9;
  overflow: hidden;
}

/* ── Canvas de partículas ──────────── */
/* El canvas cubre toda la sección; JavaScript dibuja los puntos aquí */
.hero__particles {
  position: absolute;
  inset: 0;   /* Shorthand para top:0, right:0, bottom:0, left:0 */
  width: 100%; height: 100%;
  pointer-events: none;  /* Los clics lo atraviesan y van al contenido */
  z-index: 0;
}

/* ── Capas de degradado animado ───── */
/* Dos capas de radial-gradient que se mueven lentamente */
.hero__grad-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grad-layer--1 {
  background: radial-gradient(ellipse 130% 80% at 75% 20%,
    rgba(78,179,229,.14) 0%, transparent 60%);
  animation: grad-drift-1 22s ease-in-out infinite;
  z-index: 1;
}
.hero__grad-layer--2 {
  background: radial-gradient(ellipse 100% 70% at 15% 85%,
    rgba(13,75,150,.09) 0%, transparent 65%);
  animation: grad-drift-2 28s ease-in-out infinite;
  z-index: 1;
}

/* ── Anillos giratorios (Stripe style) ── */
/* Contenedor de los tres anillos, centrado verticalmente a la derecha */
.hero__rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}
/* Todos los anillos se posicionan desde el centro del contenedor */
.hero__ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
}

/* Anillo interior: borde sólido, gira rápido (30s), tiene punto luminoso */
.hero__ring--1 {
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;  /* Centra el anillo: margin negativo de la mitad */
  border: 1.5px solid rgba(13,75,150,.1);
  animation: spin-cw 30s linear infinite;
}
/* Punto orbital quitado — reemplazado por bolitas sutiles */
.hero__ring--1::before { display: none; }

/* Anillo medio: punteado, gira al revés más lento (48s) */
.hero__ring--2 {
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  border: 1px dashed rgba(78,179,229,.07);
  animation: spin-ccw 48s linear infinite;
}
.hero__ring--2::before { display: none; }

/* Anillo exterior: muy sutil, muy lento (70s) */
.hero__ring--3 {
  width: 840px; height: 840px;
  margin: -420px 0 0 -420px;
  border: 1px solid rgba(13,75,150,.05);
  animation: spin-cw 70s linear infinite;
}

/* ── Orbs / Esferas de luz ──────────── */
/* Son divs con background radial-gradient y filter:blur
   que crean el efecto de luz borrosa flotante */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;  /* Optimización: le avisa al navegador que va a animar */
  z-index: 1;
}
.hero__orb--1 {
  width: 560px; height: 560px;
  top: -140px; right: -80px;
  background: radial-gradient(circle, rgba(78,179,229,.16) 0%, transparent 68%);
  filter: blur(52px);
  animation: orb-drift-1 20s ease-in-out infinite;
}
.hero__orb--2 {
  width: 420px; height: 420px;
  bottom: -100px; left: -80px;
  background: radial-gradient(circle, rgba(13,75,150,.11) 0%, transparent 68%);
  filter: blur(60px);
  animation: orb-drift-2 26s ease-in-out infinite;
}
.hero__orb--3 {
  width: 280px; height: 280px;
  top: 40%; left: 32%;
  background: radial-gradient(circle, rgba(78,179,229,.09) 0%, transparent 70%);
  filter: blur(38px);
  animation: orb-drift-3 16s ease-in-out infinite;
}

/* ── Bolitas sutiles flotantes ─────── */
.hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero__dot {
  position: absolute;
  border-radius: 50%;
}
.hero__dot--1 { width:10px; height:10px; top:18%; left:8%;   background:rgba(72,171,218,.28); animation: orb-drift-1 14s ease-in-out infinite 0s;   filter:blur(1px); }
.hero__dot--2 { width: 6px; height: 6px; top:35%; left:14%;  background:rgba(13,75,150,.22);  animation: orb-drift-2 18s ease-in-out infinite 1s;   filter:blur(.5px); }
.hero__dot--3 { width:14px; height:14px; top:12%; right:10%; background:rgba(13,75,150,.18);  animation: orb-drift-3 16s ease-in-out infinite .5s;  filter:blur(1.5px); }
.hero__dot--4 { width: 8px; height: 8px; top:60%; right:8%;  background:rgba(72,171,218,.24); animation: orb-drift-1 20s ease-in-out infinite 2s;   filter:blur(1px); }
.hero__dot--5 { width: 5px; height: 5px; top:75%; left:20%;  background:rgba(13,75,150,.2);   animation: orb-drift-2 12s ease-in-out infinite .8s;  filter:blur(.5px); }
.hero__dot--6 { width:12px; height:12px; top:80%; right:20%; background:rgba(72,171,218,.2);  animation: orb-drift-3 22s ease-in-out infinite 1.5s; filter:blur(1px); }
.hero__dot--7 { width: 7px; height: 7px; top:45%; left:4%;   background:rgba(72,171,218,.15); animation: orb-drift-1 17s ease-in-out infinite 3s;   filter:blur(.5px); }
.hero__dot--8 { width: 9px; height: 9px; top:25%; right:5%;  background:rgba(13,75,150,.14);  animation: orb-drift-2 15s ease-in-out infinite .3s;  filter:blur(1px); }

/* ── Grilla de puntos decorativa ─── */
/* Usa background-image con radial-gradient repetido como patrón */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13,75,150,.055) 1px, transparent 1px);
  background-size: 30px 30px;  /* Cada punto cada 30px */
  pointer-events: none;
  z-index: 1;
  /* mask-image hace que los puntos se desvanezcan en los bordes */
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ── Layout del hero (2 columnas) — mantenido por si se usa ── */
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 72px;
  min-height: 600px;
}

/* ── Layout del hero centrado (nueva versión con logo grande) ── */
.hero__inner--centered {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* ── Logo principal grande sin fondo ── */
.hero__logo-main {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* Halo de luz detrás del logo */
.hero__logo-glow {
  position: absolute;
  inset: -100px;
  border-radius: 50%;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(72,171,218,.22) 0%,
    rgba(13,75,150,.12) 40%,
    transparent 70%);
  filter: blur(28px);
  animation: glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero__logo-main-img {
  position: relative;
  z-index: 1;
  width: min(420px, 78vw);
  display: block;
  margin: 0 auto;
  height: auto;
  display: block;
  animation: float-y 7s ease-in-out infinite;
  filter: drop-shadow(0 12px 48px rgba(13,75,150,.2))
          drop-shadow(0 4px 16px rgba(72,171,218,.28));
  will-change: transform;
}

/* Badge centrado */
.hero__badge--centered {
  margin-bottom: 20px;
}

/* Subtítulo centrado */
.hero__subtitle--centered {
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 36px;
  font-size: 1.05rem;
}

/* Botones centrados */
.hero__actions--centered {
  justify-content: center;
  margin-bottom: 52px;
}

/* Stats centradas */
.hero__stats--centered {
  justify-content: center;
  border-top: 1px solid rgba(229,233,239,.8);
  padding-top: 36px;
  width: 100%;
  max-width: 520px;
}

/* ── Logo grande como título del hero ── */
.hero__logo-hero {
  margin-bottom: 32px;
}
.hero__logo-hero-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

/* ── Logo watermark decorativo (capa de fondo del hero) ── */
/* Se posiciona en el lado izquierdo del hero, grande y semi-transparente.
   filter: brightness(0) invert(1) → convierte el logo a blanco puro.
   La animación float-y-sm le da vida sutil sin distraer del contenido. */
.hero__watermark-logo {
  position: absolute;
  left: 0;
  bottom: 60px;
  width: 55%;
  max-width: 700px;
  pointer-events: none;
  z-index: 1;
  animation: float-y-sm 10s ease-in-out infinite;
}
.hero__watermark-img {
  width: 100%;
  height: auto;
  display: block;
  /* brightness(0) → negro puro | invert(1) → blanco puro | blur → integración suave */
  filter: brightness(0) invert(1);
  opacity: 0.18;
  user-select: none;
}

/* ── Badge superior del hero ──────── */
/* El punto pulsante + texto de presentación */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--primary);
  background: rgba(13,75,150,.07);
  border: 1px solid rgba(13,75,150,.16);
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 3px rgba(78,179,229,.22);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Título del hero ──────────────── */
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.14;
  margin-bottom: 22px;
  letter-spacing: -.025em;
}
/* <em> dentro del título = palabra en azul (sin cursiva) */
.hero__title em { font-style: normal; color: var(--primary); }

.hero__subtitle {
  font-size: 1.02rem;
  color: var(--text-gray);
  line-height: 1.78;
  max-width: 490px;
  margin-bottom: 38px;
}

/* ── Botones del hero ─────────────── */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ── Estadísticas del hero ─────────── */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid rgba(229,233,239,.8);
}
.hero__stat { display: flex; flex-direction: column; gap: 4px; }
.hero__stat-number {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.hero__stat-label {
  font-size: .76rem;
  font-weight: 500;
  color: var(--text-gray);
  line-height: 1.35;
}
.hero__stat-divider {
  width: 1px; height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Wrapper del tilt 3D ──────────── */
/* JavaScript modifica el transform de este elemento según la posición del cursor */
.hero__tilt {
  width: 100%;
  transform-style: preserve-3d;  /* Necesario para el efecto 3D */
  transition: transform .6s var(--ease-out);
  will-change: transform;
}

/* ── Wrapper de la foto (flotación) ── */
/* Este elemento flota mientras el padre maneja el tilt 3D */
.hero__photo-wrapper {
  position: relative;
  width: 100%; max-width: 430px;
  animation: float-y 8s ease-in-out infinite;
  will-change: transform;
}
.hero__visual { display: flex; justify-content: center; align-items: flex-end; }

/* ── Líneas orbitales (Framer/Raycast style) ── */
/* Dos SVGs que giran en direcciones opuestas alrededor de la foto */
.hero__orbital {
  position: absolute;
  inset: -80px; z-index: 0;
  pointer-events: none;
  animation: spin-ccw 36s linear infinite;
}
.hero__orbital--inner {
  inset: -40px;
  animation: spin-cw 22s linear infinite;
}
.hero__orbital svg { width: 100%; height: 100%; }

/* ── Blob de luz detrás de la foto ── */
.hero__photo-blob {
  position: absolute;
  inset: -28px; z-index: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  opacity: .17;
  filter: blur(22px);
  animation: morph 14s ease-in-out infinite, glow-pulse 8s ease-in-out infinite;
}

/* ── Anillo decorativo alrededor de la foto ── */
.hero__photo-ring {
  position: absolute;
  inset: -6px; z-index: 0;
  border: 1.5px solid rgba(78,179,229,.22);
  border-radius: 24px;
  animation: glow-pulse 5s ease-in-out infinite 1s;
}

/* ── Patrón de puntos decorativo ──── */
.hero__photo-dots {
  position: absolute;
  top: -18px; left: -18px;
  width: 72px; height: 72px;
  z-index: 0;
  background-image: radial-gradient(rgba(13,75,150,.28) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  border-radius: 8px;
  opacity: .55;
}

/* ── Foto principal del héroe ──────── */
.hero__photo {
  position: relative;
  z-index: 1;  /* Encima del blob, el anillo y los puntos */
  width: 100%; max-height: 560px;
  object-fit: cover;
  object-position: top center;  /* Enfoca la parte superior (rostro) */
  border-radius: 24px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.4);
}

/* ── Badge flotante del logo ──────── */
.hero__logo-badge {
  position: absolute;
  bottom: 28px; left: -24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: float-badge 5s ease-in-out infinite .6s;
}
.hero__logo-badge img { height: 30px; width: auto; }
.hero__logo-badge-text {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--primary);
}


/* ══════════════════════════════════════════════════════════
   8. TARJETA FLOTANTE DE SERVICIOS
   Se superpone sobre el hero con margin-top negativo.
   Efecto de vidrio esmerilado con backdrop-filter.
══════════════════════════════════════════════════════════ */
.floating-card-section {
  position: relative;
  z-index: 2;
  margin-top: -56px;  /* Se monta sobre el hero */
}
.floating-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;  /* 3 items + 2 divisores */
  align-items: center;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 36px 44px;
  border: 1px solid rgba(229,233,239,.7);
  transition: box-shadow .3s var(--ease-out);
}
.floating-card:hover {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(13,75,150,.07);
}

.floating-card__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 20px;
  border-radius: 10px;
  transition: background .25s;
  cursor: default;
}
.floating-card__item:hover { background: rgba(13,75,150,.04); }

/* El ícono se mueve al hacer hover en el ítem */
.floating-card__icon { flex-shrink: 0; transition: transform .3s var(--ease-out); }
.floating-card__item:hover .floating-card__icon { transform: scale(1.1) rotate(-3deg); }

.floating-card__title {
  font-family: var(--font-head);
  font-size: .97rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.floating-card__desc { font-size: .83rem; color: var(--text-gray); line-height: 1.55; }

/* Línea divisora vertical entre los ítems */
.floating-card__divider { width: 1px; height: 64px; background: var(--border); flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════
   9. SECCIÓN SERVICIOS
══════════════════════════════════════════════════════════ */
.services {
  padding: 120px 0 104px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
/* Orb decorativo de fondo (esquina derecha) */
.services::after {
  content: '';
  position: absolute;
  top: 10%; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(78,179,229,.06) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: section-orb 14s ease-in-out infinite;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 columnas iguales */
  gap: 20px;
}

/* ── Efecto Spotlight (luz que sigue el cursor) ──
   Usa variables CSS --x e --y que JavaScript actualiza
   con la posición del cursor dentro de la tarjeta.
   El pseudo-elemento ::before crea el círculo de luz. */
.spotlight-card {
  position: relative;
  isolation: isolate;  /* Crea un nuevo contexto de apilamiento */
  overflow: hidden;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--x, 50%) var(--y, 50%),
    rgba(13,75,150,.065) 0%,
    transparent 65%
  );
  opacity: 0;  /* Invisible por defecto */
  transition: opacity .35s;
  pointer-events: none;
  z-index: 0;
}
.spotlight-card:hover::before { opacity: 1; }  /* Aparece al hacer hover */

/* ── Tarjeta de servicio ──────────── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 28px;
  transition: transform .32s var(--ease-out),
              box-shadow .32s var(--ease-out),
              border-color .32s;
  cursor: default;
}
/* Línea de color superior que "crece" al hacer hover */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);           /* Empieza colapsada */
  transform-origin: left;         /* Crece desde la izquierda */
  transition: transform .38s var(--ease-out);
  z-index: 1;
}
.service-card:hover {
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(13,75,150,.1);
  transform: translateY(-7px);
  border-color: rgba(13,75,150,.12);
}
.service-card:hover::after { transform: scaleX(1); }  /* La línea aparece */

.service-card__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,75,150,.06);
  border-radius: 10px;
  margin-bottom: 20px;
  transition: background .3s, transform .3s var(--ease-out);
  position: relative; z-index: 1;
}
.service-card:hover .service-card__icon {
  background: rgba(13,75,150,.1);
  transform: scale(1.08) rotate(-4deg);
}
.service-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.service-card__desc {
  font-size: .86rem;
  color: var(--text-gray);
  line-height: 1.68;
  position: relative; z-index: 1;
}
/* Flecha que aparece deslizándose al hacer hover */
.service-card__arrow {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s, transform .25s var(--ease-out);
  position: relative; z-index: 1;
}
.service-card:hover .service-card__arrow { opacity: 1; transform: translateX(0); }


/* ══════════════════════════════════════════════════════════
   10. SECCIÓN COMPROMISO
══════════════════════════════════════════════════════════ */
.commitment {
  background: linear-gradient(160deg, #edf3f9 0%, var(--bg-light) 55%, #eff4f9 100%);
  padding: 104px 0;
  position: relative;
  overflow: hidden;
}
.commitment::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(78,179,229,.08) 0%, transparent 70%);
  filter: blur(44px);
  pointer-events: none;
  animation: section-orb 18s ease-in-out infinite 2s;
}

.commitment__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.commitment__text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 36px;
}

/* ── Lista de beneficios ─────────── */
.commitment__list   { display: flex; flex-direction: column; gap: 12px; }
.commitment__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(229,233,239,.6);
  transition: background .25s, box-shadow .25s, transform .25s var(--ease-out);
}
/* Al hacer hover el ítem se desliza a la derecha */
.commitment__item:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.commitment__check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(13,75,150,.3);
  transition: transform .25s var(--ease-out);
}
.commitment__item:hover .commitment__check { transform: scale(1.1); }

/* ── Stack de tarjetas métricas ─── */
.commitment__visual { display: flex; justify-content: center; }
.commitment__card-stack {
  position: relative;
  width: 100%; max-width: 320px;
  height: 320px;
}
/* Estilos base de cada tarjeta métrica */
.commitment__metric-card {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border: 1px solid var(--border);
}
/* Tarjeta central — más grande y con mayor z-index (encima de las demás) */
.commitment__metric-card--main {
  bottom: 0; left: 50%;
  transform: translateX(-50%);  /* Centrada horizontalmente */
  width: 220px; padding: 28px 24px;
  z-index: 3;
  animation: metric-float-main 8s ease-in-out infinite 0s;
}
/* Tarjeta superior derecha */
.commitment__metric-card--top {
  top: 0; right: 0;
  width: 170px; padding: 20px;
  z-index: 2;
  animation: metric-float-top 7s ease-in-out infinite .5s;
}
/* Tarjeta inferior izquierda */
.commitment__metric-card--bottom {
  top: 40px; left: 0;
  width: 150px; padding: 20px;
  z-index: 1;
  animation: metric-float-bottom 9s ease-in-out infinite 1.2s;
}
.metric__number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.metric__label { font-size: .8rem; font-weight: 500; color: var(--text-gray); line-height: 1.45; }
.metric__icon  { margin-bottom: 4px; }


/* ══════════════════════════════════════════════════════════
   11. SECCIÓN SOBRE NOSOTROS
══════════════════════════════════════════════════════════ */
.about {
  background: var(--white);
  padding: 104px 0;
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(13,75,150,.06) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: section-orb 16s ease-in-out infinite 1s;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.about__visual { display: flex; justify-content: center; }
.about__photo-wrapper {
  position: relative;
  width: 100%; max-width: 420px;
}

/* Sombra desplazada detrás de la foto */
.about__photo-bg {
  position: absolute;
  top: 24px; left: 24px;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(13,75,150,.08) 0%, rgba(78,179,229,.1) 100%);
  border-radius: 24px;
  border: 2px solid rgba(13,75,150,.1);
}

/* Halo de luz detrás de la foto */
.about__photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(78,179,229,.14) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}

.about__photo {
  position: relative;
  z-index: 1;
  width: 100%; max-height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease-out);
}
.about__photo-wrapper:hover .about__photo { transform: scale(1.015); }

/* Badge con nombre del fundador */
.about__photo-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  animation: float-badge 6s ease-in-out infinite;
}
/* Punto verde pulsante antes del nombre */
.about__photo-badge::before {
  content: '';
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 3px rgba(72,171,218,.2);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
.about__photo-badge-info { display: flex; flex-direction: column; gap: 2px; }
.about__photo-badge-name {
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.about__photo-badge-role {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-gray);
  line-height: 1;
}

.about__text {
  font-size: .975rem;
  color: var(--text-gray);
  line-height: 1.82;
  margin-bottom: 18px;
}
.about__content .btn { margin-top: 12px; }


/* ══════════════════════════════════════════════════════════
   12. SECCIÓN CONTACTO
══════════════════════════════════════════════════════════ */
.contact {
  background: linear-gradient(160deg, #eef3f9 0%, var(--bg-light) 100%);
  padding: 104px 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  bottom: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(78,179,229,.08) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: section-orb 12s ease-in-out infinite .5s;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ── Tarjeta de contacto base ──────── */
.contact-card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(229,233,239,.8);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .32s var(--ease-out),
              box-shadow .32s var(--ease-out),
              border-color .32s;
}

/* Cada tarjeta flota con una fase diferente para que no se muevan al unísono */
.contact-card:nth-child(1) { animation: contact-float 7s   ease-in-out infinite 0s;   }
.contact-card:nth-child(2) { animation: contact-float 8s   ease-in-out infinite .8s;  }
.contact-card:nth-child(3) { animation: contact-float 6.5s ease-in-out infinite 1.5s; }

/* Al hacer hover: se pausa la flotación y sube */
.contact-card:hover {
  animation-play-state: paused;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13,75,150,.08);
  transform: translateY(-7px);
  border-color: rgba(13,75,150,.12);
}

.contact-card__icon {
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: transform .3s var(--ease-out);
}
.contact-card:hover .contact-card__icon { transform: scale(1.08) rotate(-4deg); }

/* Colores de fondo de cada ícono según la red social */
.contact-card__icon--wa   { background: rgba(37,211,102,.08);  }
.contact-card__icon--ig   { background: rgba(221,42,123,.06);  }
.contact-card__icon--info { background: rgba(13,75,150,.06);   }

.contact-card__title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative; z-index: 1;
}
.contact-card__desc {
  font-size: .875rem;
  color: var(--text-gray);
  line-height: 1.68;
  flex: 1;
  position: relative; z-index: 1;
}
.contact-card__btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  position: relative; z-index: 1;
}

/* Botón WhatsApp: blanco con texto/borde azul */
.contact-card__btn--wa {
  background: var(--white) !important;
  color: var(--primary) !important;
  border-color: rgba(13,75,144,.2) !important;
  font-weight: 700;
}
.contact-card__btn--wa:hover {
  background: rgba(13,75,144,.06) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
}

/* ── Tarjeta destacada: Consultas Directas ── */
/* Fondo de degradado azul que destaca sobre las otras dos */
.contact-card--featured {
  background: linear-gradient(145deg, var(--primary) 0%, #1a6bb5 60%, #0a3d78 100%);
  border-color: rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
  animation: contact-float 7s ease-in-out infinite 1.2s;
}
.contact-card--featured:hover {
  border-color: rgba(255,255,255,.2);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(72,171,218,.3),
              0 0 60px rgba(72,171,218,.15);
}

/* Orb de luz en la esquina de la tarjeta destacada */
.contact-card--featured__glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,171,218,.25) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

/* Ajustes de colores para los elementos internos (texto blanco) */
.contact-card--featured .contact-card__icon {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
}
.contact-card--featured:hover .contact-card__icon {
  background: rgba(255,255,255,.2);
  transform: scale(1.08) rotate(-4deg);
}
.contact-card--featured .contact-card__title { color: var(--white); font-size: 1.15rem; }
.contact-card--featured .contact-card__desc  { color: rgba(255,255,255,.7); }

/* Contenedor de las filas de información */
.contact-card__info { display: flex; flex-direction: column; gap: 10px; flex: 1; position: relative; z-index: 1; }
.contact-card__info p { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-gray); }

/* Filas de info con fondo translúcido y separadores */
.contact-card__info--featured {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .2s, color .2s;
  position: relative; z-index: 1;
}
.contact-info-row:last-child { border-bottom: none; }

/* Las filas que son links (<a>) tienen hover */
a.contact-info-row:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.contact-info-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* Botón blanco de WhatsApp dentro de la tarjeta destacada */
.contact-card--featured__btn {
  background: var(--white);
  color: var(--primary);
  border-color: transparent;
  font-weight: 700;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.contact-card--featured__btn:hover {
  background: rgba(255,255,255,.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}


/* ══════════════════════════════════════════════════════════
   13. SECCIÓN UBICACIÓN
══════════════════════════════════════════════════════════ */
.location {
  background: var(--white);
  padding: 104px 0;
  position: relative;
  overflow: hidden;
}
.location::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(72,171,218,.06) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: section-orb 18s ease-in-out infinite;
}

.location__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;  /* El mapa es un poco más ancho */
  gap: 80px;
  align-items: center;
}

.location__desc {
  font-size: .975rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 36px;
}

/* ── Filas de datos de contacto ──── */
.location__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 36px;
}
.location__detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: background .25s, box-shadow .25s, transform .25s var(--ease-out);
}
/* Al hacer hover: se desliza a la derecha */
.location__detail-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.location__detail-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,75,144,.07);
  border-radius: 8px;
  transition: transform .3s var(--ease-out);
}
.location__detail-item:hover .location__detail-icon { transform: scale(1.1); }

.location__detail-text  { display: flex; flex-direction: column; gap: 2px; }
.location__detail-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary);
}
.location__detail-value {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-dark);
}
/* El teléfono es clicable */
.location__detail-value--link {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
.location__detail-value--link:hover { color: var(--secondary); }

.location__btn { gap: 10px; }

/* ── Mapa ──────────────────────────── */
.location__map-wrapper { position: relative; }
.location__map-frame {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;  /* Redondea los bordes del iframe */
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  position: relative;
}
/* Borde interior sutil sobre el mapa */
.location__map-frame::before {
  content: '';
  position: absolute;
  inset: 0; z-index: 1;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(13,75,144,.08);
  pointer-events: none;
}

/* Badge flotante debajo del mapa */
.location__map-badge {
  position: absolute;
  bottom: -16px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  z-index: 2;
  animation: float-badge 7s ease-in-out infinite;
}


/* ══════════════════════════════════════════════════════════
   14. FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--primary);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
/* Orb de luz decorativo */
.footer__glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(78,179,229,.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: glow-pulse 10s ease-in-out infinite;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }

/* Logo en el footer: cuadrado con bordes redondeados */
.footer__logo {
  height: 72px; width: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.footer__tagline { font-size: .84rem; color: rgba(255,255,255,.6); }
.footer__copy    { font-size: .78rem; color: rgba(255,255,255,.45); }


/* ══════════════════════════════════════════════════════════
   15. ANIMACIONES DE ENTRADA AL HACER SCROLL
   Los elementos con estas clases empiezan invisibles y
   desplazados. JavaScript (IntersectionObserver) agrega
   la clase .visible cuando el elemento entra en pantalla,
   activando la transición CSS.

   --delay es una variable CSS custom que permite escalonar
   las animaciones (cada tarjeta entra un poco después).
══════════════════════════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .78s var(--ease-out), transform .78s var(--ease-out);
  transition-delay: var(--delay, 0s);  /* Por defecto: sin delay */
}
.reveal-up    { transform: translateY(28px);  }  /* Empieza 28px abajo */
.reveal-left  { transform: translateX(-28px); }  /* Empieza 28px a la izquierda */
.reveal-right { transform: translateX(28px);  }  /* Empieza 28px a la derecha */

/* Cuando JavaScript agrega .visible: vuelve a su posición natural */
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════════════════════════
   16. RESPONSIVE — Adaptación a pantallas pequeñas
   @media (max-width: Npx) → aplica los estilos cuando
   la pantalla es más angosta que N píxeles.
   El diseño se ajusta de desktop (2 columnas) a móvil (1 columna).
══════════════════════════════════════════════════════════ */

/* TABLET: hasta 1024px */
@media (max-width: 1024px) {
  /* El hero pasa de 2 columnas a 1 columna */
  .hero__inner { grid-template-columns: 1fr; gap: 56px; min-height: unset; }
  .hero__visual { order: -1; max-width: 380px; margin-inline: auto; }
  .hero__content  { text-align: center; }
  .hero__actions  { justify-content: center; }
  .hero__stats    { justify-content: center; }
  .hero__subtitle { margin-inline: auto; }
  /* Logo centrado en tablet */
  .hero__logo-main-img { width: min(420px, 80vw); }

  /* La tarjeta flotante pasa de 3 columnas a 1 */
  .floating-card { grid-template-columns: 1fr; }
  .floating-card__divider { width: 100%; height: 1px; margin: 6px 0; }

  /* Grids de 3 columnas a 2 */
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  /* Secciones de 2 columnas a 1 */
  .commitment__inner { grid-template-columns: 1fr; gap: 52px; }
  .commitment__visual { display: none; }  /* Ocultamos las tarjetas métricas en tablet */
  .about__inner    { grid-template-columns: 1fr; gap: 52px; }
  .about__visual   { max-width: 380px; margin-inline: auto; }

  /* Contacto a 1 columna centrada */
  .contact__grid   { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

  /* Ubicación a 1 columna */
  .location__inner { grid-template-columns: 1fr; gap: 52px; }
  .location__map-frame { height: 340px; }

  /* Título de sección centrado correctamente */
  .section-header .section-title { display: block; }
}

/* MÓVIL: hasta 768px */
@media (max-width: 768px) {
  /* Ocultar nav y CTA del header en móvil */
  .header__nav, .header__cta { display: none; }
  /* Mostrar el botón hamburguesa */
  .header__burger { display: flex; }

  /* Menú móvil: pantalla completa con backdrop blur */
  .header__nav.open {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 99;
  }
  .header__nav.open .header__nav-list {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  /* Servicios a 1 columna */
  .services__grid { grid-template-columns: 1fr; }

  /* Menos padding en el hero */
  .hero { padding-bottom: 80px; }

  /* La tarjeta flotante no sube tanto */
  .floating-card-section { margin-top: -24px; }

  /* Ocultar los anillos en móvil (muy pesados visualmente en pantalla chica) */
  .hero__rings { display: none; }

  /* Footer en columna centrado */
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
}

/* MÓVIL PEQUEÑO: hasta 480px */
@media (max-width: 480px) {
  /* Los botones del hero se apilan en columna */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }

  /* Las estadísticas se envuelven */
  .hero__stats { flex-wrap: wrap; gap: 20px; }
  .hero__stat-divider { display: none; }
}
