/* ==========================================================================
   MULTICAP — Centro de Capacitación y Nivelación
   1. Tokens · 2. Base · 3. Utilidades · 4. Navbar · 5. Hero · 6. Por qué
   7. Proceso · 8. Servicios · 9. Galería · 10. Testimonios · 11. FAQ
   12. Contacto · 13. Footer · 14. Flotantes · 15. Movimiento
   ========================================================================== */

/* 1. Tokens ============================================================== */
:root {
  /* Marca */
  --navy-900: #0d1f3c;
  --navy-800: #123059;
  --navy-700: #1a3a6e;
  --navy-500: #2b5cb5;
  --navy-050: #eef3fb;
  --red-600: #a91f25;
  --red-500: #c0272d;
  --red-400: #d94b51;
  --gold: #c8912c;

  --color-primary: var(--navy-700);
  --color-secondary: var(--red-500);
  --color-accent: var(--navy-500);

  /* Neutros */
  --ink: #131720;
  --ink-soft: #4c5464;
  --ink-mute: #7b8391;
  --line: #e5e8ee;
  --line-soft: #eef0f5;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-deep: #0b1220;

  /* Tipografía */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala de espaciado */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-section: clamp(72px, 9vw, 120px);
  --gutter: clamp(20px, 5vw, 40px);
  --maxw: 1200px;

  /* Formas */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(13, 31, 60, .05), 0 2px 8px rgba(13, 31, 60, .04);
  --shadow-2: 0 4px 12px rgba(13, 31, 60, .07), 0 12px 32px rgba(13, 31, 60, .06);
  --shadow-3: 0 12px 24px rgba(13, 31, 60, .09), 0 28px 60px rgba(13, 31, 60, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base =============================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, a, input, textarea, select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
iframe { display: block; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: .01em;
  text-wrap: balance;
}

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(26, 58, 110, .14); }

section[id] { scroll-margin-top: 90px; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* 3. Utilidades ========================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}

.section-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.title-line {
  width: 56px;
  height: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--color-secondary), var(--red-400));
  margin: 0 auto var(--sp-5);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.8;
  text-wrap: pretty;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn-primary {
  color: #fff;
  background: var(--color-secondary);
  box-shadow: 0 8px 24px rgba(192, 39, 45, .28);
}
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(192, 39, 45, .34); }
.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }

/* Manchas de color de fondo */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.blob-por-que      { width: 320px; height: 320px; background: rgba(26, 58, 110, .07);  top: 6%;    right: -6%; }
.blob-proceso      { width: 280px; height: 280px; background: rgba(192, 39, 45, .06);  bottom: 8%; left: -5%; }
.blob-servicios-1  { width: 340px; height: 340px; background: rgba(26, 58, 110, .06);  top: 18%;   left: -8%; }
.blob-servicios-2  { width: 240px; height: 240px; background: rgba(192, 39, 45, .05);  bottom: 8%; right: -4%; }
.blob-testimonios  { width: 300px; height: 300px; background: rgba(43, 92, 181, .07);  top: 12%;   right: -5%; }
.blob-contacto     { width: 280px; height: 280px; background: rgba(26, 58, 110, .06);  bottom: 4%; left: 2%; }

/* Aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* 4. Navbar ============================================================= */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  /* Por encima del menú móvil: si no, el botón de cerrar queda debajo del panel. */
  z-index: 1010;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(13, 31, 60, .06);
}

.navbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: .12em;
  color: #fff;
  transition: color .4s var(--ease);
}
.navbar-logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(140deg, var(--navy-500), var(--navy-700));
  box-shadow: 0 6px 16px rgba(26, 58, 110, .3);
}
.navbar.scrolled .navbar-logo { color: var(--color-primary); }

.navbar-links {
  display: none;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
}
.navbar-links a {
  position: relative;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  transition: color .3s var(--ease);
}
.navbar-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.navbar-links a:hover::after { width: 100%; }
.navbar.scrolled .navbar-links a { color: var(--ink-soft); }
.navbar.scrolled .navbar-links a:hover { color: var(--color-primary); }

.navbar-cta {
  display: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--r-pill);
  padding: 11px 24px;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.navbar-cta:hover { background: #fff; color: var(--color-primary); border-color: #fff; }
.navbar.scrolled .navbar-cta { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.navbar.scrolled .navbar-cta:hover { background: var(--navy-800); border-color: var(--navy-800); }

@media (min-width: 1024px) {
  .navbar-links, .navbar-cta { display: flex; }
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1010;
}
.hamburger span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .4s var(--ease);
}
.navbar.scrolled .hamburger span { background: var(--ink); }
.hamburger.active span { background: var(--ink); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 1024px) { .hamburger { display: none; } }

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 86vw);
  height: 100dvh;
  z-index: 1005;
  background: var(--bg);
  box-shadow: -20px 0 60px rgba(13, 31, 60, .16);
  padding: 108px var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  overscroll-behavior: contain;
  transition: right .42s var(--ease);
}
.mobile-menu.open { right: 0; }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.mobile-menu a:hover { color: var(--color-primary); padding-left: 6px; }
.mobile-menu-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: auto;
  padding: 14px 20px !important;
  border: none !important;
  border-radius: var(--r-pill);
  background: #25d366;
  color: #fff !important;
  font-size: .85rem !important;
  text-transform: none !important;
  letter-spacing: .02em !important;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1004;
  background: rgba(11, 18, 32, .5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.mobile-overlay.visible { opacity: 1; pointer-events: auto; }

/* 5. Hero =============================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0 0 -18% 0;
  background: url('assets/images/hero-campus.jpg') center 55% / cover no-repeat;
  transform: scale(1.06);
  will-change: transform;
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, .55) 0%, rgba(11, 18, 32, .18) 34%, rgba(11, 18, 32, .72) 100%),
    linear-gradient(120deg, rgba(26, 58, 110, .82) 0%, rgba(13, 31, 60, .58) 55%, rgba(13, 31, 60, .72) 100%);
}

.hero-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}
.hero-float-1 { width: 320px; height: 320px; background: rgba(43, 92, 181, .28); top: 8%;   left: -6%; }
.hero-float-2 { width: 220px; height: 220px; background: rgba(192, 39, 45, .22);  bottom: 12%; right: 4%;  animation-delay: 1s; }
.hero-float-3 { width: 160px; height: 160px; background: rgba(255, 255, 255, .12); top: 38%;  right: 22%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(3deg); }
}

.hero-content {
  position: relative;
  max-width: 860px;
  text-align: center;
  color: #fff;
}

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  opacity: 0;
  animation: fade-up .9s var(--ease) .05s forwards;
}

.hero-rule {
  width: 64px;
  height: 2px;
  background: rgba(255, 255, 255, .5);
  margin: var(--sp-5) auto;
  opacity: 0;
  animation: fade-up .9s var(--ease) .15s forwards;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  line-height: 1.1;
  letter-spacing: .01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
  opacity: 0;
  animation: fade-up .9s var(--ease) .25s forwards;
}

.hero-lead {
  max-width: 620px;
  margin: var(--sp-5) auto 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, .88);
  opacity: 0;
  animation: fade-up .9s var(--ease) .38s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  opacity: 0;
  animation: fade-up .9s var(--ease) .5s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .3);
  animation: nudge 2.4s ease-in-out infinite;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.hero-scroll:hover { background: rgba(255, 255, 255, .14); color: #fff; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* 6. Por qué elegirnos ================================================== */
.por-que {
  position: relative;
  padding: var(--sp-section) 0;
  background: var(--bg);
  overflow: hidden;
}
.por-que .container { position: relative; z-index: 1; }

.por-que-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 640px) { .por-que-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .por-que-grid { grid-template-columns: repeat(4, 1fr); } }

.por-que-card {
  position: relative;
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.por-que-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-500), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.por-que-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-3);
  border-color: rgba(26, 58, 110, .25);
}
.por-que-card:hover::before { transform: scaleX(1); }

.por-que-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto var(--sp-5);
  border-radius: 18px;
  background: linear-gradient(150deg, var(--navy-050), #fff);
  border: 1px solid rgba(26, 58, 110, .12);
  color: var(--color-primary);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.por-que-icon .material-icons { font-size: 28px; }
.por-que-card:hover .por-que-icon {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-500));
  color: #fff;
}

.por-que-card h3 { font-size: 1.28rem; margin-bottom: var(--sp-3); }
.por-que-card p { font-size: .93rem; color: var(--ink-soft); line-height: 1.75; }

.counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6) var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .counters { grid-template-columns: repeat(4, 1fr); } }

.counter-item { text-align: center; }
.counter-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.1rem);
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.counter-label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* 7. Proceso ============================================================ */
.proceso {
  position: relative;
  padding: var(--sp-section) 0;
  background: var(--bg-soft);
  overflow: hidden;
}
.proceso .container { position: relative; z-index: 1; }

.proceso-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 1024px) { .proceso-layout { grid-template-columns: 1fr 1fr; } }

.proceso-image-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.proceso-image-wrap img {
  width: 100%;
  height: clamp(320px, 45vw, 470px);
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.proceso-image-wrap:hover img { transform: scale(1.04); }

.proceso-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  counter-reset: paso;
}

.proceso-step {
  position: relative;
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}
.proceso-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 54px;
  bottom: calc(var(--sp-6) * -1 + 4px);
  width: 1px;
  background: linear-gradient(to bottom, rgba(26, 58, 110, .28), rgba(26, 58, 110, 0));
}

.step-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary);
  background: var(--bg);
  border: 1px solid rgba(26, 58, 110, .25);
  box-shadow: var(--shadow-1);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.proceso-step:hover .step-number {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.step-content h3 { font-size: 1.22rem; margin-bottom: var(--sp-2); }
.step-content p { font-size: .93rem; color: var(--ink-soft); line-height: 1.75; }

/* 8. Servicios ========================================================== */
.servicios {
  position: relative;
  padding: var(--sp-section) 0;
  background: var(--bg);
  overflow: hidden;
}
.servicios .container { position: relative; z-index: 1; }

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 640px) { .servicios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .servicios-grid { grid-template-columns: repeat(3, 1fr); } }

.servicio-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-3);
  border-color: rgba(26, 58, 110, .2);
}

.servicio-img-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-soft);
}
.servicio-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 31, 60, 0) 55%, rgba(13, 31, 60, .28) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.servicio-card:hover .servicio-img-wrap::after { opacity: 1; }
.servicio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.servicio-card:hover .servicio-img-wrap img { transform: scale(1.06); }

.servicio-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
}
.servicio-body h3 { font-size: 1.32rem; margin-bottom: var(--sp-3); }
.servicio-body p {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
  flex: 1;
}

.servicio-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(26, 58, 110, .4);
  transition: color .3s var(--ease), border-color .3s var(--ease), gap .3s var(--ease);
}
.servicio-cta .material-icons { font-size: 16px; }
.servicio-cta:hover { color: var(--color-secondary); border-color: var(--color-secondary); gap: 12px; }

/* 9. Galería ============================================================ */
.galeria {
  position: relative;
  padding: var(--sp-section) 0;
  background: var(--bg-soft);
  overflow: hidden;
}
.galeria::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 72%, rgba(26, 58, 110, .05), transparent 62%);
  pointer-events: none;
}
.galeria .container { position: relative; z-index: 1; }

.galeria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 640px) { .galeria-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .galeria-grid { grid-template-columns: repeat(3, 1fr); } }

.galeria-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.galeria-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 31, 60, 0) 45%, rgba(13, 31, 60, .68) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.galeria-item figcaption {
  position: absolute;
  left: var(--sp-5);
  bottom: var(--sp-4);
  z-index: 2;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.galeria-item:hover img { transform: scale(1.07); }
.galeria-item:hover::after { opacity: 1; }
.galeria-item:hover figcaption { opacity: 1; transform: none; }

/* 10. Testimonios ======================================================= */
.testimonios {
  position: relative;
  padding: var(--sp-section) 0;
  background: var(--bg);
  overflow: hidden;
}
.testimonios .container { position: relative; z-index: 1; }

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 768px) { .testimonios-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.testimonio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: rgba(26, 58, 110, .2);
}

.testimonio-quote {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: .8;
  color: var(--color-primary);
  opacity: .16;
  margin-bottom: var(--sp-3);
}

.testimonio-stars { display: flex; gap: 2px; margin-bottom: var(--sp-4); }
.testimonio-stars .material-icons { font-size: 18px; color: var(--gold); }

.testimonio-text {
  flex: 1;
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: var(--sp-5);
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-soft);
}
.testimonio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.testimonio-name { font-size: .95rem; font-weight: 600; color: var(--ink); }
.testimonio-role { font-size: .8rem; color: var(--ink-mute); }

/* 11. FAQ =============================================================== */
.faq {
  padding: var(--sp-section) 0;
  background: var(--bg-soft);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item.open { border-color: rgba(26, 58, 110, .3); box-shadow: var(--shadow-2); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.faq-question:hover { color: var(--color-primary); }
.faq-question .material-icons {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--color-primary);
  transition: transform .35s var(--ease);
}
.faq-item.open .faq-question { color: var(--color-primary); }
.faq-item.open .faq-question .material-icons { transform: rotate(180deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden;
  font-size: .93rem;
  color: var(--ink-soft);
  line-height: 1.85;
}
.faq-item.open .faq-answer-inner { padding: 0 var(--sp-5) var(--sp-5); }

/* 12. Contacto ========================================================== */
.contacto {
  position: relative;
  padding: var(--sp-section) 0;
  background: var(--bg);
  overflow: hidden;
}
.contacto .container { position: relative; z-index: 1; }

.contacto-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
}
@media (min-width: 1024px) { .contacto-layout { grid-template-columns: 1.05fr 1fr; } }

.contacto-form-wrap {
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.contacto-form { display: flex; flex-direction: column; gap: var(--sp-5); }

.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-group input,
.form-group textarea {
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a7adb9; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(26, 58, 110, .1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit {
  align-self: flex-start;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--r-pill);
  padding: 16px 38px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(26, 58, 110, .24);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.form-submit:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(26, 58, 110, .3);
}

.form-success {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(26, 58, 110, .06);
  border: 1px solid rgba(26, 58, 110, .18);
  font-size: .92rem;
  color: var(--color-primary);
}
.form-success.visible { display: flex; }
.form-success .material-icons { font-size: 20px; }

.contacto-info { display: flex; flex-direction: column; gap: var(--sp-5); }

.contacto-info-item { display: flex; align-items: flex-start; gap: var(--sp-4); }
.contacto-info-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--navy-050), #fff);
  border: 1px solid rgba(26, 58, 110, .12);
  color: var(--color-primary);
}
.contacto-info-icon .material-icons { font-size: 22px; }
.contacto-info-icon .fab { font-size: 20px; }

.contacto-info-text h3 { font-family: var(--font-sans); font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.contacto-info-text p,
.contacto-info-text a {
  font-size: .92rem;
  color: var(--ink-soft);
  transition: color .3s var(--ease);
}
.contacto-info-text a:hover { color: var(--color-primary); }

.contacto-map {
  margin-top: var(--sp-2);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

/* 13. Footer ============================================================ */
.footer {
  position: relative;
  padding: clamp(56px, 7vw, 84px) 0 0;
  background: var(--bg-deep);
  color: #fff;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--navy-500), var(--color-secondary));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand h3 {
  font-size: 1.55rem;
  letter-spacing: .14em;
  margin-bottom: var(--sp-4);
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, .58);
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .58);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }

.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .72);
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.footer-social a i { font-size: 16px; }
.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-5) 0;
  text-align: center;
}
.footer-bottom p { font-size: .8rem; color: rgba(255, 255, 255, .38); }
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* 14. Botón flotante ==================================================== */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 26px);
  bottom: clamp(16px, 3vw, 26px);
  z-index: 999;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 22px rgba(37, 211, 102, .38);
  animation: whatsapp-pulse 2.4s infinite;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.whatsapp-float i { font-size: 28px; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37, 211, 102, .48); }

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(37, 211, 102, .38); }
  50%      { box-shadow: 0 6px 22px rgba(37, 211, 102, .55), 0 0 0 12px rgba(37, 211, 102, .07); }
}

/* 15. Movimiento reducido =============================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-eyebrow, .hero-rule, .hero-content h1, .hero-lead, .hero-actions { opacity: 1; }
}
