/* ============================================================================
   4C Digital Solutions SAC — Hoja de estilos principal
   Enfoque: mobile-first, CSS3 moderno, sin frameworks.
   Autor: Propuesta corporativa 4C Digital Solutions
   ---------------------------------------------------------------------------
   Índice:
   1.  Variables (tokens de diseño)
   2.  Reset y bases
   3.  Tipografía y utilidades
   4.  Layout / contenedores
   5.  Botones
   6.  Encabezado (header sticky)
   7.  Menú móvil
   8.  Hero
   9.  Secciones genéricas
   10. Nosotros / Pilares 4C
   11. Servicios (tarjetas)
   12. Soluciones / Beneficios
   13. Metodología (timeline)
   14. Diferenciadores
   15. CTA
   16. Formulario de contacto
   17. Footer
   18. Páginas secundarias (gracias / política)
   19. Animaciones (reveal on scroll)
   20. Accesibilidad y responsive
   ========================================================================== */

/* ============================ 1. VARIABLES ============================ */
:root {
  /* Colores corporativos */
  --azul: #1B1464;          /* Azul corporativo principal */
  --azul-900: #0F0A3A;      /* Azul muy oscuro (fondos destacados) */
  --azul-800: #16104F;      /* Azul oscuro (encabezados) */
  --azul-600: #2A1F8F;      /* Azul medio (hover, degradados) */
  --azul-100: #E7E6F4;      /* Azul muy claro (fondos suaves) */
  --naranja: #FF6B00;       /* Naranja corporativo (acento/CTA) */
  --naranja-600: #E85F00;   /* Naranja hover */
  --naranja-100: #FFEAD6;   /* Naranja claro (fondos suaves) */

  /* Neutros */
  --blanco: #FFFFFF;
  --gris-claro: #F4F6FB;    /* Fondo secundario */
  --gris-borde: #E3E7F1;    /* Bordes sutiles */
  --texto: #1E2338;         /* Texto principal (derivado del azul) */
  --texto-suave: #5A6178;   /* Texto secundario */
  --texto-inv: #EEF0FA;     /* Texto sobre fondos oscuros */

  /* Tipografía */
  --fuente: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;

  /* Radios y sombras */
  --radio-sm: 8px;
  --radio: 14px;
  --radio-lg: 22px;
  --sombra-sm: 0 1px 2px rgba(15, 10, 58, 0.06);
  --sombra: 0 10px 30px rgba(15, 10, 58, 0.08);
  --sombra-md: 0 18px 44px rgba(15, 10, 58, 0.12);
  --sombra-cta: 0 12px 28px rgba(255, 107, 0, 0.30);

  /* Layout */
  --ancho-max: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --alto-header: 106px;

  /* Transiciones */
  --t-rapida: 0.18s ease;
  --t: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================ 2. RESET Y BASES ============================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-header) + 12px); /* compensa header fijo al usar anclas */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* evita desbordamiento horizontal */
}

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

a { color: var(--azul-600); text-decoration: none; transition: color var(--t-rapida); }
a:hover { color: var(--naranja); }

ul { margin: 0; padding: 0; list-style: none; }

/* ============================ 3. TIPOGRAFÍA ============================ */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  color: var(--azul);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.45rem); }
p  { margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 0.9rem;
}
.eyebrow--inv { color: #FFB27A; }

.lead { font-size: 1.12rem; color: var(--texto-suave); max-width: 60ch; }

/* Utilidades */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Enlace "saltar al contenido" para accesibilidad por teclado */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 1000;
  background: var(--naranja);
  color: var(--blanco);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radio-sm);
  font-weight: 700;
  transition: top var(--t);
}
.skip-link:focus { top: 1rem; color: var(--blanco); }

/* ============================ 4. LAYOUT ============================ */
.container {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 2rem + 7vw, 6.5rem);
}
.section--gris { background: var(--gris-claro); }
.section--azul {
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-900) 100%);
  color: var(--texto-inv);
}
.section--azul h2,
.section--azul h3 { color: var(--blanco); }

.section-head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.text-center { margin-inline: auto; }

/* ============================ 5. BOTONES ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--t-rapida), box-shadow var(--t),
              background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn--primario {
  background: var(--naranja);
  color: var(--blanco);
  box-shadow: var(--sombra-cta);
}
.btn--primario:hover { background: var(--naranja-600); color: var(--blanco); transform: translateY(-2px); }

.btn--secundario {
  background: var(--azul);
  color: var(--blanco);
}
.btn--secundario:hover { background: var(--azul-600); color: var(--blanco); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--azul);
  border-color: var(--gris-borde);
}
.btn--ghost:hover { border-color: var(--azul); color: var(--azul); }

.btn--claro { background: var(--blanco); color: var(--azul); }
.btn--claro:hover { background: var(--azul-100); color: var(--azul); transform: translateY(-2px); }

.btn--borde-claro { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,0.5); }
.btn--borde-claro:hover { background: rgba(255,255,255,0.12); color: var(--blanco); border-color: var(--blanco); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ============================ 6. HEADER ============================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--alto-header);
  display: flex;
  align-items: center;
  background: rgba(27, 20, 100, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  transition: background var(--t), box-shadow var(--t), height var(--t);
}
/* Cambio sutil al hacer scroll (clase añadida por JS) */
.header.is-scrolled {
  background: rgba(15, 10, 58, 0.98);
  box-shadow: 0 8px 24px rgba(15, 10, 58, 0.25);
  height: 90px;
}
/* Al hacer scroll, el logo se reduce ligeramente para acompañar al header */
.header.is-scrolled .brand img { height: 68px; }
.header__inner {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 82px; width: auto; }
.brand__name { color: #fff; font-weight: 800; letter-spacing: 0.02em; font-size: 1.05rem; }
.brand__name b { color: var(--naranja); }

.nav { display: none; }               /* oculto en móvil, visible en desktop */
.nav__list { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color var(--t-rapida), background var(--t-rapida);
}
.nav__link:hover,
.nav__link:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after {
  content: "";
  display: block;
  height: 3px; width: 60%;
  margin: 4px auto 0;
  border-radius: 3px;
  background: var(--naranja);
}

.header__cta { display: none; }

/* Botón hamburguesa */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: var(--radio-sm);
}
.nav-toggle:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }
.nav-toggle span {
  height: 2.5px; width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================ 7. MENÚ MÓVIL ============================ */
.mobile-menu {
  position: fixed;
  inset: var(--alto-header) 0 0 0;
  z-index: 99;
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-900) 100%);
  padding: 1.5rem var(--gutter) 2.5rem;
  transform: translateX(100%);
  transition: transform var(--t);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.9rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu a:hover { color: var(--naranja); }
.mobile-menu .btn { margin-top: 1.4rem; }
body.no-scroll { overflow: hidden; }

/* ============================ 8. HERO ============================ */
.hero {
  position: relative;
  padding-top: calc(var(--alto-header) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(42, 31, 143, 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 107, 0, 0.10), transparent 55%),
    linear-gradient(165deg, var(--azul) 0%, var(--azul-900) 100%);
  color: var(--texto-inv);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero h1 { color: #fff; }
.hero h1 .acento { color: var(--naranja); }
.hero__text .lead { color: rgba(238, 240, 250, 0.85); }
.hero .btn-group { margin-top: 1.8rem; }

/* Chips de indicadores del hero */
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem; font-weight: 600;
  color: #fff;
}
.chip svg { width: 16px; height: 16px; color: var(--naranja); }

.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25)); }

/* ============================ 9. SECCIONES GENÉRICAS ============================ */
.grid { display: grid; gap: 1.4rem; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ============================ 10. NOSOTROS / PILARES ============================ */
.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.pilares { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pilar {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.3rem;
  box-shadow: var(--sombra-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.pilar:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.pilar__letra {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--azul-100);
  color: var(--azul);
  font-weight: 800; font-size: 1.3rem;
  margin-bottom: 0.7rem;
}
.pilar h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.pilar p { font-size: 0.92rem; color: var(--texto-suave); margin: 0; }

.mv-card {
  background: var(--gris-claro);
  border-left: 4px solid var(--naranja);
  border-radius: var(--radio-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}
.mv-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.mv-card p { margin: 0; color: var(--texto-suave); }

/* ============================ 11. SERVICIOS ============================ */
.servicios { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.servicio {
  position: relative;
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sombra-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.servicio::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul), var(--naranja));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.servicio:hover { transform: translateY(-6px); box-shadow: var(--sombra-md); border-color: transparent; }
.servicio:hover::before { transform: scaleX(1); }
.servicio__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--azul), var(--azul-600));
  color: #fff;
  margin-bottom: 1.1rem;
}
.servicio__icon svg { width: 28px; height: 28px; }
.servicio h3 { font-size: 1.2rem; }
.servicio p { color: var(--texto-suave); font-size: 0.96rem; }
.servicio__benef {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 700; color: var(--azul-600);
  background: var(--azul-100);
  padding: 0.35rem 0.75rem; border-radius: 999px;
  margin: 0.2rem 0 1.1rem;
}
.servicio__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; color: var(--naranja);
}
.servicio__link svg { width: 16px; height: 16px; transition: transform var(--t-rapida); }
.servicio__link:hover svg { transform: translateX(4px); }

.servicio--destacado {
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-900) 100%);
  color: var(--texto-inv);
  border-color: transparent;
}
.servicio--destacado h3 { color: #fff; }
.servicio--destacado p { color: rgba(238, 240, 250, 0.82); }
.servicio--destacado .servicio__icon { background: var(--naranja); }
.servicio--destacado .servicio__benef { background: rgba(255,255,255,0.12); color: #FFC79E; }

/* ============================ 12. SOLUCIONES / BENEFICIOS ============================ */
.beneficios { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.beneficio {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.2rem;
  border-radius: var(--radio);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform var(--t), background var(--t);
}
.beneficio:hover { transform: translateY(-4px); background: rgba(255,255,255,0.09); }
.beneficio__ico {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 107, 0, 0.18);
  color: var(--naranja);
}
.beneficio__ico svg { width: 22px; height: 22px; }
.beneficio h3 { font-size: 1rem; color: #fff; margin-bottom: 0.15rem; }
.beneficio p { font-size: 0.88rem; color: rgba(238,240,250,0.75); margin: 0; }

/* ============================ 13. METODOLOGÍA ============================ */
.metodo { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: paso; }
.paso {
  position: relative;
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--sombra-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.paso:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.paso__num {
  counter-increment: paso;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--azul); color: #fff;
  font-weight: 800; font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.paso__num::before { content: "0" counter(paso); }
.paso h3 { font-size: 1.08rem; }
.paso p { font-size: 0.92rem; color: var(--texto-suave); margin: 0; }

/* ============================ 14. DIFERENCIADORES ============================ */
.difs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.dif {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1.2rem;
  border-radius: var(--radio);
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  box-shadow: var(--sombra-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.dif:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.dif__ico {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--naranja-100); color: var(--naranja-600);
}
.dif__ico svg { width: 22px; height: 22px; }
.dif h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.dif p { font-size: 0.9rem; color: var(--texto-suave); margin: 0; }

/* ============================ 15. CTA ============================ */
.cta-band {
  position: relative;
  border-radius: var(--radio-lg);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255,107,0,0.25), transparent 60%),
    linear-gradient(150deg, var(--azul) 0%, var(--azul-900) 100%);
  color: var(--texto-inv);
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(238,240,250,0.85); max-width: 55ch; margin-inline: auto 1.6rem; }
.cta-band .btn-group { justify-content: center; margin-top: 1.6rem; }

/* ============================ 16. FORMULARIO ============================ */
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
.contacto__info li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gris-borde);
}
.contacto__info li:last-child { border-bottom: 0; }
.contacto__info .ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--azul-100); color: var(--azul);
}
.contacto__info .ico svg { width: 20px; height: 20px; }
.contacto__info b { display: block; color: var(--azul); font-size: 0.95rem; }
.contacto__info span { color: var(--texto-suave); font-size: 0.92rem; }

.form-card {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--sombra);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--azul); }
.field .req { color: var(--naranja); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--texto);
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--gris-borde);
  border-radius: var(--radio-sm);
  background: var(--gris-claro);
  transition: border-color var(--t-rapida), box-shadow var(--t-rapida), background var(--t-rapida);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--azul-600);
  background: var(--blanco);
  box-shadow: 0 0 0 4px rgba(42, 31, 143, 0.12);
}
/* Estado de error (marcado por JS) */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #E23D3D;
  background: #FFF5F5;
}
.field__error {
  font-size: 0.82rem; color: #C42B2B; min-height: 1em;
  display: none;
}
.field.has-error .field__error { display: block; }

.field--check { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--naranja); flex: 0 0 auto; }
.field--check label { font-weight: 500; color: var(--texto-suave); font-size: 0.9rem; }

.form-honeypot { position: absolute; left: -5000px; } /* honeypot oculto */

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radio-sm);
  font-weight: 600; font-size: 0.95rem;
}
.form-status.is-visible { display: block; }
.form-status--error { background: #FDECEC; color: #B42020; border: 1px solid #F6C9C9; }

/* ============================ 17. FOOTER ============================ */
.footer {
  background: var(--azul-900);
  color: rgba(238, 240, 250, 0.75);
  padding-block: clamp(2.6rem, 5vw, 3.5rem) 1.5rem;
  font-size: 0.92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer__brand img { height: 96px; margin-bottom: 0.9rem; }
.footer__brand p { max-width: 34ch; }
.footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { color: rgba(238, 240, 250, 0.75); }
.footer a:hover { color: var(--naranja); }
.footer__links li,
.footer__contact li { padding: 0.32rem 0; }
.footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--naranja); flex: 0 0 auto; margin-top: 2px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.4rem;
  font-size: 0.85rem;
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Botón flotante de contacto rápido (lleva al formulario) */
.contact-fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--naranja);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra-cta);
  transition: transform var(--t);
}
.contact-fab:hover { transform: scale(1.08); }
.contact-fab svg { width: 28px; height: 28px; color: #fff; }

/* Marcador de información pendiente */
.pendiente {
  background: #FFF4E0;
  color: #8A5A00;
  border: 1px dashed #E8B25A;
  border-radius: 6px;
  padding: 0.08em 0.4em;
  font-size: 0.85em;
  font-weight: 600;
}

/* Datos de contacto mostrados como imagen (modo anti-bots) */
.ci-img {
  display: block;
  height: 20px;
  width: auto;
  margin-top: 4px;
  user-select: none;           /* evita selección/copia del texto de la imagen */
  -webkit-user-drag: none;
}

/* ============================ 18. PÁGINAS SECUNDARIAS ============================ */
.simple-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.simple-main {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--alto-header) + 3rem) var(--gutter) 4rem;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(42,31,143,0.5), transparent 60%),
    linear-gradient(165deg, var(--azul) 0%, var(--azul-900) 100%);
  color: var(--texto-inv);
  text-align: center;
}
.simple-card {
  max-width: 620px;
}
.simple-card .check-circle {
  width: 96px; height: 96px; margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  display: inline-flex; align-items: center; justify-content: center;
}
.simple-card .check-circle svg { width: 52px; height: 52px; color: #25D366; }
.simple-card h1 { color: #fff; }
.simple-card p { color: rgba(238,240,250,0.85); font-size: 1.1rem; }
.simple-card .btn-group { justify-content: center; margin-top: 1.8rem; }

/* Documento legal (política de privacidad) */
.doc {
  max-width: 820px;
  margin-inline: auto;
  padding: calc(var(--alto-header) + 3rem) var(--gutter) 4rem;
}
.doc h1 { margin-bottom: 0.3rem; }
.doc .doc__meta { color: var(--texto-suave); margin-bottom: 2rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.doc ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.doc ul li { padding: 0.15rem 0; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================ 19. ANIMACIONES ============================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Retrasos escalonados opcionales */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* Nodo pulsante del hero (animación discreta) */
@keyframes pulso { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }
.hero__visual .pulso { animation: pulso 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero__visual .pulso--2 { animation-delay: 0.8s; }
.hero__visual .pulso--3 { animation-delay: 1.6s; }

/* ============================ 20. RESPONSIVE ============================ */

/* Tablet (≥ 680px) */
@media (min-width: 680px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .cta-band p { margin-bottom: 1.6rem; }
}

/* Desktop pequeño (≥ 960px) */
@media (min-width: 960px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .header__cta { display: inline-flex; }
  .mobile-menu { display: none; }

  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .nosotros__grid { grid-template-columns: 1fr 1fr; }
  .contacto__grid { grid-template-columns: 0.85fr 1.15fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1.4fr; }
  .pilares { gap: 1.2rem; }
}

/* Desktop grande (≥ 1280px) */
@media (min-width: 1280px) {
  .footer__grid { grid-template-columns: 2.2fr 1fr 1fr 1.4fr; }
}

/* ============================ ACCESIBILIDAD: reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Foco visible global para navegación por teclado */
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }
