/* =====================================================================
   KROPY AI · Estilos
   Índice:
   0. Variables (colores, tipografías)   7. Proceso
   1. Base y utilidades                  8. Planes
   2. Botones, tarjetas, iconos          9. Proyectos
   3. Cursor personalizado              10. Testimonios
   4. Header                            11. Equipo / Próximamente
   5. Hero + cinta                      12. Contacto
   6. Servicios / Nichos (horizontal)   13. Footer, WhatsApp flotante
                                        14. Animaciones y reduced-motion
   ===================================================================== */

/* ---------- 0. VARIABLES: cambia aquí los colores de toda la web ---------- */
:root {
  --bg: #05060a;            /* fondo casi negro */
  --bg-2: #080b14;          /* fondo de secciones alternas */
  --navy: #0a1f44;          /* azul oscuro de marca */
  --blue: #2f7bff;          /* azul eléctrico (acento) */
  --blue-soft: #8fc5ff;     /* azul claro del logo */
  --text: #f2f5fb;
  --muted: #98a3b8;
  --line: rgba(143, 197, 255, 0.14);
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015));
  --glow: 0 0 32px rgba(47, 123, 255, 0.45);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --container: 1200px;
  --radius: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 1. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Rejilla tecnológica muy sutil de fondo */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(143, 197, 255, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(143, 197, 255, 0.035) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--flip { transform: scaleX(-1); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 12vw, 150px); }
.section--tint { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); display: grid; gap: 18px; justify-items: start; }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__head--row > div { display: grid; gap: 18px; max-width: 760px; }
.section__title { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 700; }
.section__lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-soft);
}
@media (max-width: 480px) { .eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; } }
.eyebrow__dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.accent { color: var(--blue-soft); text-shadow: 0 0 36px rgba(47, 123, 255, 0.75); }

.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-soft); background: rgba(47, 123, 255, 0.12); border: 1px solid rgba(47, 123, 255, 0.35);
}

/* ---------- 2. BOTONES ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: box-shadow 0.35s var(--ease), background-color 0.35s, border-color 0.35s, color 0.35s;
  will-change: transform;
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { color: #fff; background: linear-gradient(135deg, #3d8bff, #1b56e0); box-shadow: 0 0 0 1px rgba(143, 197, 255, 0.35) inset, 0 8px 30px rgba(47, 123, 255, 0.4); }
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(143, 197, 255, 0.6) inset, 0 10px 46px rgba(47, 123, 255, 0.7); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--blue); box-shadow: var(--glow); }
.btn--whatsapp { color: #04130a; background: #25d366; box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3); }
.btn--whatsapp:hover { box-shadow: 0 10px 44px rgba(37, 211, 102, 0.55); }
.btn--whatsapp:hover .icon { transform: none; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* Tarjeta de cristal (glassmorphism) con brillo que sigue al ratón */
.card, .plan, .nicho__card, .testi, .project, .form, .soon {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tilt {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.tilt.is-tilting { transition: transform 0.12s linear, border-color 0.35s, box-shadow 0.35s; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47, 123, 255, 0.22), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.tilt:hover { border-color: rgba(47, 123, 255, 0.55); box-shadow: 0 20px 60px rgba(4, 12, 40, 0.8), 0 0 40px rgba(47, 123, 255, 0.15); }
.tilt:hover::after { opacity: 1; }

.card { height: 100%; padding: 28px; display: grid; gap: 12px; align-content: start; }
.card h3, .nicho__card h3 { font-size: 1.2rem; font-weight: 600; }
.card p, .nicho__card p { color: var(--muted); font-size: 0.95rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px;
  color: var(--blue-soft); font-size: 1.15rem;
  background: linear-gradient(145deg, rgba(47, 123, 255, 0.28), rgba(10, 31, 68, 0.6));
  border: 1px solid rgba(47, 123, 255, 0.4);
  box-shadow: 0 0 24px rgba(47, 123, 255, 0.25);
  transform: translateZ(30px);
}

.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--services { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 3. CURSOR PERSONALIZADO ----------
   Círculo + punto azules, SIEMPRE con el mismo tamaño y la misma forma. */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor__ring, .cursor__dot { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; transition: opacity 0.3s; }
.cursor__ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;   /* tamaño del círculo */
  border: 1.5px solid var(--blue);
  box-shadow: 0 0 18px rgba(47, 123, 255, 0.8), 0 0 4px rgba(47, 123, 255, 0.6) inset;
}
.cursor__dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--blue-soft); box-shadow: 0 0 12px var(--blue), 0 0 2px #fff; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

/* ---------- 4. HEADER + MENÚ CON DESPLEGABLES ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
/* El fondo de cristal va en ::before para no romper el menú móvil a pantalla completa */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; border-bottom: 1px solid transparent; transition: background-color 0.4s, border-color 0.4s; }
.header.is-scrolled::before { background: rgba(5, 6, 10, 0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.header__inner { height: var(--header-h); max-width: calc(1320px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__logo { position: relative; z-index: 102; flex-shrink: 0; }
.header__logo img { height: 30px; width: auto; }
.header__cta { display: none; }

.burger { position: relative; z-index: 102; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease); }
.nav-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* --- Móvil: menú a pantalla completa con desplegables tipo acordeón --- */
.nav {
  position: fixed; inset: 0; z-index: 101;
  display: flex; flex-direction: column; gap: 28px;
  padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(5, 6, 10, 0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.nav-open .nav { opacity: 1; visibility: visible; }
.nav__item { border-bottom: 1px solid var(--line); }
.nav__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; transition: color 0.3s; }
.nav__chev { width: 0.85em; height: 0.85em; stroke-width: 2.2; color: var(--blue-soft); transition: transform 0.4s var(--ease); }
.nav__item.is-open .nav__link { color: var(--blue-soft); }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.nav__cta { flex-shrink: 0; }

.drop { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.nav__item.is-open > .drop { grid-template-rows: 1fr; }
.drop__panel { overflow: hidden; min-height: 0; }
.drop__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.drop__grid { display: grid; gap: 2px; padding-bottom: 16px; }
.drop__link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; transition: background-color 0.25s; min-width: 0; }
.drop__link:hover { background: rgba(47, 123, 255, 0.13); }
.drop__link > span:last-child { min-width: 0; }
.drop__link strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text); line-height: 1.3; overflow-wrap: anywhere; }
.drop__link small { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.drop__ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--blue-soft); background: rgba(47, 123, 255, 0.14); border: 1px solid rgba(47, 123, 255, 0.32); }
.drop__ico .icon { width: 1.15em; height: 1.15em; }
.drop__ico--round { border-radius: 50%; font-size: 0.75rem; }
.drop__link--accent strong { color: var(--blue-soft); }
.drop__badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--blue); vertical-align: middle; }
.drop__hours { display: grid; gap: 8px; margin-bottom: 14px; }
.drop__hours li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(47, 123, 255, 0.08); border: 1px solid var(--line); }
.drop__hours span { font-size: 0.8rem; color: var(--muted); }
.drop__hours strong { font-family: var(--font-display); font-size: 1rem; white-space: nowrap; }
.drop__more { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 0.88rem; font-weight: 600; color: var(--blue-soft); }
.drop__more .icon { transition: transform 0.3s var(--ease); }
.drop__more:hover .icon { transform: translateX(4px); }

/* Indicador "Abierto ahora / Cerrado ahora" (lo actualiza js/main.js) */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.is-open { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.status.is-open::before { box-shadow: 0 0 10px #4ade80; }
.status.is-closed { color: #9aa5ba; }

/* --- Ordenador: barra con desplegables flotantes --- */
@media (min-width: 1180px) {
  .burger, .nav__cta { display: none; }
  .header__cta { display: inline-flex; }
  .nav { position: static; flex-direction: row; padding: 0; overflow: visible; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 1; visibility: visible; }
  .nav__list { position: relative; display: flex; }
  .nav__item { border: 0; }
  .nav__link { gap: 6px; padding: 24px 12px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
  .nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link, .nav__item.is-open > .nav__link { color: var(--text); }
  .nav__item:hover .nav__chev, .nav__item:focus-within .nav__chev, .nav__item.is-open .nav__chev { transform: rotate(180deg); }

  /* Todos los paneles salen centrados bajo el menú */
  .drop { position: absolute; top: 100%; left: 50%; z-index: 5; display: block; translate: -50% 0; padding-top: 4px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s, visibility 0.3s; }
  .drop__panel {
    width: 350px; padding: 20px; border-radius: 22px; overflow: visible;
    background: rgba(8, 11, 20, 0.98); border: 1px solid rgba(143, 197, 255, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 60px rgba(47, 123, 255, 0.16);
    translate: 0 10px; transition: translate 0.4s var(--ease);
  }
  .drop--wide .drop__panel { width: 640px; }
  .drop--wide .drop__grid { grid-template-columns: 1fr 1fr; }
  .drop__grid, .drop__more { padding-bottom: 0; margin-bottom: 0; }
  .drop__title { margin-bottom: 12px; padding: 0 10px; }
  .nav__item:hover > .drop, .nav__item:focus-within > .drop, .nav__item.is-open > .drop { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__item:hover .drop__panel, .nav__item:focus-within .drop__panel, .nav__item.is-open .drop__panel { translate: 0 0; }
  .nav__item.is-closed > .drop { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
}

/* ---------- 5. HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 20%, rgba(10, 31, 68, 0.9), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--bg));
  z-index: 0;
}
.hero__canvas { z-index: 1; }
.hero__content { position: relative; z-index: 2; display: grid; gap: 26px; justify-items: start; }
.hero__title { font-size: clamp(2.5rem, 7.4vw, 5.4rem); font-weight: 700; max-width: 13.5em; letter-spacing: -0.035em; line-height: 1.02; }
.hero__subtitle { color: #b6c0d3; font-size: clamp(1.02rem, 1.6vw, 1.25rem); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); width: 100%; max-width: 860px; }
.stat { display: grid; gap: 4px; }
.stat strong { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat strong small { font-size: 0.5em; color: var(--blue-soft); margin-left: 3px; }
.stat > span { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.hero__scroll { position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 12px; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.hero__scroll span { width: 1px; height: 42px; background: linear-gradient(var(--blue), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (min-width: 900px) {
  .hero__canvas { opacity: 1; }
  .hero__glow { background: radial-gradient(45% 55% at 72% 48%, rgba(10, 31, 68, 0.95), transparent 70%), linear-gradient(180deg, transparent 70%, var(--bg)); }
  .hero__title { max-width: 11.5em; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .hero__scroll { display: flex; }
}

/* Cinta animada */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: rgba(10, 31, 68, 0.18); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 500; color: var(--muted); white-space: nowrap; }
.marquee i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 6. NICHOS · CARRUSEL AUTOMÁTICO ---------- */
.nichos { position: relative; overflow: hidden; padding-block: clamp(80px, 12vw, 150px); background: radial-gradient(70% 60% at 50% 50%, rgba(10, 31, 68, 0.55), transparent 75%); }
.nichos__pin { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.nichos__head { display: grid; gap: 12px; }
.hint--mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .hint--mouse { display: inline; } .hint--touch { display: none; } }
/* touch-action: pan-y → el dedo en vertical sigue bajando la página; en horizontal mueve las tarjetas */
.nichos__viewport {
  padding-block: 18px; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.nichos__track { display: flex; width: max-content; will-change: transform; }
.nicho { width: min(80vw, 360px); padding-inline: 10px; flex-shrink: 0; }
.nicho__card { height: 100%; min-height: 300px; padding: 26px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; overflow: hidden; }
.nicho__card .card__icon { margin-bottom: auto; }
.nicho__num {
  position: absolute; top: 12px; right: 20px;
  font-family: var(--font-display); font-size: 4.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(143, 197, 255, 0.28);
}
.nicho--cta .nicho__card { justify-content: center; align-items: flex-start; gap: 14px; background: linear-gradient(150deg, rgba(47, 123, 255, 0.3), rgba(10, 31, 68, 0.5)); border-color: rgba(47, 123, 255, 0.5); }
.nicho--cta h3 { font-size: 1.5rem; }
.nicho--cta p { color: #c6d2e8; }

/* Sin animaciones (reduced-motion o sin JS): scroll horizontal nativo */
html:not(.anim) .nichos__viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-mask-image: none; mask-image: none; touch-action: auto; }
html:not(.anim) .nicho { scroll-snap-align: center; }

/* ---------- 7. PROCESO ---------- */
.proceso { display: grid; gap: 48px; }
.proceso__head { margin-bottom: 0; }
.steps { position: relative; display: grid; gap: 18px; }
.steps__line { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.steps__line span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--blue-soft), var(--blue)); box-shadow: 0 0 14px var(--blue); transform-origin: top; }
.anim .steps__line span { transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--blue-soft);
  background: var(--bg); border: 1px solid rgba(47, 123, 255, 0.55); box-shadow: 0 0 22px rgba(47, 123, 255, 0.35), 0 0 12px rgba(47, 123, 255, 0.2) inset;
}
.step__body { padding: 22px 24px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); display: grid; gap: 6px; }
.step__body h3 { font-size: 1.25rem; font-weight: 600; }
.step__body p { color: var(--muted); font-size: 0.97rem; }
@media (min-width: 960px) {
  .proceso { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
  .proceso__head { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* ---------- 8. PLANES ---------- */
.grid--plans { grid-template-columns: 1fr; align-items: stretch; gap: 24px; }
.plan { height: 100%; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.plan__name { font-size: 1.7rem; font-weight: 700; }
.plan__desc { color: var(--muted); font-size: 0.95rem; min-height: 3em; }
.plan__list { display: grid; gap: 12px; padding: 20px 0; margin-bottom: auto; border-top: 1px solid var(--line); }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; }
.plan__list .icon { color: var(--blue); margin-top: 3px; width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.plan__plus { font-weight: 600; color: var(--blue-soft); }
/* Plan destacado: borde azul brillante */
.plan--popular { border: 1.5px solid var(--blue); background: linear-gradient(165deg, rgba(47, 123, 255, 0.2), rgba(10, 31, 68, 0.35) 55%, rgba(255, 255, 255, 0.02)); box-shadow: 0 0 0 1px rgba(47, 123, 255, 0.25), 0 0 60px rgba(47, 123, 255, 0.35), 0 0 30px rgba(47, 123, 255, 0.12) inset; }
.plan--popular:hover { border-color: var(--blue-soft); box-shadow: 0 0 0 1px rgba(47, 123, 255, 0.4), 0 0 80px rgba(47, 123, 255, 0.5), 0 0 30px rgba(47, 123, 255, 0.15) inset; }
.plan__badge { position: absolute; top: -14px; left: 50%; translate: -50% 0; padding: 6px 16px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 24px rgba(47, 123, 255, 0.8); }
@media (min-width: 900px) {
  .grid--plans { grid-template-columns: repeat(3, 1fr); }
  .grid--plans > li:nth-child(2) { margin-block: -14px; }
}

/* ---------- 9. PROYECTOS ---------- */
.grid--projects { grid-template-columns: 1fr; }
.project { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.project__media { aspect-ratio: 16 / 10; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease); }
.project:hover .project__media img { scale: 1.06; }
.project__body { padding: 24px; display: grid; gap: 8px; justify-items: start; }
.project__body h3 { font-size: 1.4rem; font-weight: 600; }
.project__body p { color: var(--muted); }
.project--empty { min-height: 240px; align-items: center; justify-content: center; text-align: center; gap: 6px; border-style: dashed; border-color: rgba(143, 197, 255, 0.28); background: rgba(10, 31, 68, 0.14); backdrop-filter: none; }
.project--empty h3 { font-size: 1.15rem; font-weight: 600; }
.project--empty p { color: var(--muted); font-size: 0.9rem; }
.project__plus { width: 54px; height: 54px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: var(--blue-soft); border: 1px solid rgba(47, 123, 255, 0.45); }
@media (min-width: 900px) {
  .grid--projects { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; }
  .project-wrap--main { grid-row: span 2; }
  .project-wrap--main .project__media { aspect-ratio: auto; flex: 1; min-height: 340px; }
}

/* ---------- 10. TESTIMONIOS ---------- */
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 6px; }
.carousel::-webkit-scrollbar { display: none; }
.testi { flex: 0 0 min(86%, 420px); scroll-snap-align: start; padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.testi__stars { display: flex; gap: 4px; color: var(--blue-soft); filter: drop-shadow(0 0 8px rgba(47, 123, 255, 0.7)); }
.testi blockquote { margin: 0 0 auto; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; min-height: 5.6em; }
.testi footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.testi footer strong { display: block; font-size: 0.95rem; }
.testi footer span { color: var(--muted); font-size: 0.85rem; }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue)); border: 1px solid var(--line); flex-shrink: 0; }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); transition: border-color 0.3s, box-shadow 0.3s; }
.carousel__btn:hover { border-color: var(--blue); box-shadow: var(--glow); }
.carousel__dots { display: flex; gap: 8px; margin-top: 26px; }
.carousel__dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width 0.4s var(--ease), background-color 0.4s; }
.carousel__dots span.is-active { width: 28px; background: var(--blue); box-shadow: 0 0 10px var(--blue); }

/* ---------- 11. EQUIPO ---------- */
.team { display: grid; gap: 40px; align-items: center; }
.team__photo { max-width: 400px; width: 100%; }
.team__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; border: 1px solid rgba(47, 123, 255, 0.4); background: radial-gradient(80% 70% at 50% 30%, #12336e, var(--navy) 55%, #060c1c); box-shadow: 0 30px 80px rgba(3, 10, 34, 0.9), 0 0 60px rgba(47, 123, 255, 0.18); }
.team__frame img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.team__initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 6rem; font-weight: 700; letter-spacing: -0.04em; color: rgba(143, 197, 255, 0.5); }
.team__info { display: grid; gap: 16px; justify-items: start; }
.team__name { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; }
.team__role { font-family: var(--font-display); font-size: 1.2rem; color: var(--blue-soft); margin-top: -8px; }
.team__lead { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.35; padding-left: 16px; border-left: 2px solid var(--blue); }
.team__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 4px; }
@media (min-width: 860px) { .team { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } }

/* PRÓXIMAMENTE */
.soon { padding: clamp(28px, 5vw, 60px); display: grid; gap: 40px; overflow: hidden; background: linear-gradient(140deg, rgba(10, 31, 68, 0.75), rgba(5, 6, 10, 0.4) 60%), var(--glass); }
.soon::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 123, 255, 0.35), transparent 65%); pointer-events: none; }
.soon__head { position: relative; display: grid; gap: 16px; justify-items: start; }
.soon__list { position: relative; display: grid; gap: 16px; }
.soon__list li { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(5, 6, 10, 0.45); display: grid; gap: 6px; }
.soon__list h3 { font-size: 1.12rem; font-weight: 600; }
.soon__list p { color: var(--muted); font-size: 0.92rem; }
.tag--pulse { position: relative; padding-left: 30px; }
.tag--pulse::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blue-soft); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143, 197, 255, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(143, 197, 255, 0); } }
@media (min-width: 800px) { .soon__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 12. CONTACTO ---------- */
.contact { overflow: hidden; }
.contact__glow { position: absolute; left: 50%; bottom: -40%; width: 120vw; height: 90%; translate: -50% 0; background: radial-gradient(50% 50% at 50% 50%, rgba(47, 123, 255, 0.28), transparent 70%); pointer-events: none; }
.contact__grid { position: relative; display: grid; gap: 48px; }
.contact__info { display: grid; gap: 22px; justify-items: start; align-content: start; }
.contact__title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.contact__data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; width: 100%; padding-top: 24px; border-top: 1px solid var(--line); }
.contact__data li { display: grid; gap: 2px; min-width: 0; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn__logo { width: 1.3em; height: 1.3em; flex-shrink: 0; }   /* logo de WhatsApp / Gmail dentro del botón */
/* Botón de email: blanco, con el sobre en rojo */
.btn--mail { color: #0b0f1a; background: #fff; border-color: #fff; box-shadow: 0 8px 30px rgba(255, 255, 255, 0.16); }
.btn--mail .icon { color: #ea4335; stroke-width: 2; }
.btn--mail:hover { border-color: #fff; box-shadow: 0 10px 44px rgba(255, 255, 255, 0.4); }
.btn--mail:hover .icon { transform: none; }
/* Etiqueta (arriba) y valor (abajo): los 4 datos con la misma letra y el mismo color */
.contact__data li > span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact__data strong, .contact__data a { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.contact__data a:hover { color: var(--blue-soft); }
.hours { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10, 31, 68, 0.3); }
.hours .icon { color: var(--blue-soft); width: 1.5em; height: 1.5em; margin-top: 2px; }
.hours p { color: var(--muted); font-size: 0.93rem; }

.form { padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; align-content: start; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: 0.82rem; font-weight: 500; color: #c3ccdc; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(5, 6, 10, 0.6); border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fc5ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; text-overflow: ellipsis; }
.field select option { background: #0a0f1c; color: var(--text); }
.field ::placeholder { color: #5e6880; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.22), 0 0 24px rgba(47, 123, 255, 0.2); }
.field .is-invalid { border-color: #ff6b81; }
.form__status { min-height: 1.4em; font-size: 0.9rem; color: var(--blue-soft); text-align: center; }
.form__status.is-error { color: #ff8b9c; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }

/* ---------- 13. FOOTER ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: #04050a; padding-top: 72px; }
.footer::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: 110vw; height: 70%; translate: -50% 0; background: radial-gradient(50% 50% at 50% 50%, rgba(47, 123, 255, 0.2), transparent 70%); pointer-events: none; }
.footer__top { position: relative; display: grid; gap: 48px; }
.footer h4 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.footer__brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.footer__brand img { width: 230px; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 30ch; }
/* Redes sociales: una ficha por red (WhatsApp en verde, el resto en azul) */
.footer__socials { display: grid; gap: 10px; width: 100%; max-width: 340px; }
.social { --c: var(--blue-soft); --c-rgb: 47, 123, 255; display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 14px; border-radius: 16px; border: 1px solid rgba(var(--c-rgb), 0.4); background: rgba(var(--c-rgb), 0.08); transition: box-shadow 0.35s, border-color 0.35s; }
.social--wa { --c: #25d366; --c-rgb: 37, 211, 102; }
.social[href]:hover { border-color: var(--c); box-shadow: 0 0 34px rgba(var(--c-rgb), 0.3); }
.social .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: #04130a; background: var(--c); }
.social small { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
.social strong { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.01em; color: var(--text); }
.social:not([href]) strong { color: var(--muted); }   /* usuario aún sin configurar */
/* TikTok: negro con borde claro */
.social--tt { --c: #f2f5fb; --c-rgb: 255, 255, 255; background: #000; border-color: rgba(255, 255, 255, 0.28); }
/* Logo oficial de cada red (se cargan desde cdn.simpleicons.org) */
.social__ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--c); }
.social__ico img { width: 22px; height: 22px; }
.social--tt .social__ico { background: #000; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.social--ig .social__ico { background: linear-gradient(45deg, #f9ce34, #f77737 35%, #ee2a7b 70%, #6228d7); }
.social--tt .icon { color: #fff; background: #000; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
/* Instagram: naranja / degradado */
.social--ig { --c: #ff8a3d; --c-rgb: 255, 138, 61; }
.social--ig .icon { color: #fff; background: linear-gradient(45deg, #f9ce34, #f77737 35%, #ee2a7b 70%, #6228d7); }

/* Próximamente, dentro del cierre de la página */
.footer__soon { position: relative; padding-top: clamp(56px, 8vw, 96px); }

/* Enlaces: lista numerada grande */
.footer__explore { display: grid; gap: 10px; align-content: start; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.footer__links a { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; transition: color 0.3s, padding 0.4s var(--ease), border-color 0.3s; }
.footer__links a span { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; color: var(--blue); letter-spacing: 0.08em; }
.footer__links a .icon { margin-left: auto; width: 1em; height: 1em; color: var(--blue-soft); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.footer__links a:hover { color: var(--blue-soft); padding-left: 8px; border-bottom-color: var(--blue); }
.footer__links a:hover .icon { opacity: 1; transform: none; }

/* Horario: semana + franjas */
.schedule { display: grid; gap: 18px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.schedule__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.schedule__week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.schedule__week li { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--blue-soft); background: rgba(47, 123, 255, 0.16); border: 1px solid rgba(47, 123, 255, 0.45); }
.schedule__week li.is-off { color: #4d566b; background: none; border: 1px dashed rgba(143, 197, 255, 0.16); }
.schedule__week li.is-today { color: #fff; background: var(--blue); border-color: var(--blue-soft); box-shadow: 0 0 20px rgba(47, 123, 255, 0.8); }
.schedule__week li.is-off.is-today { color: var(--text); background: none; border-style: solid; border-color: var(--muted); box-shadow: none; }
.schedule__slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.schedule__slots div { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(5, 6, 10, 0.55); border: 1px solid var(--line); }
.schedule__slots small { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.schedule__slots strong { font-family: var(--font-display); font-size: 1.12rem; white-space: nowrap; }

/* Nombre gigante de cierre */
.footer__giant {
  position: relative; margin: 56px 0 -0.14em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(4.4rem, 19.5vw, 18rem); line-height: 0.82; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(143, 197, 255, 0.22);
  background: linear-gradient(180deg, rgba(47, 123, 255, 0.42), rgba(47, 123, 255, 0) 88%); -webkit-background-clip: text; background-clip: text;
}
.footer__bottom { position: relative; padding: 20px 76px 22px var(--gutter); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; background: rgba(4, 5, 10, 0.7); }
.footer__bottom p { font-size: 0.82rem; color: var(--muted); }
@media (min-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1.15fr 1fr; gap: 64px; }
}

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #04130a; background: #25d366; font-size: 1.35rem; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); transition: scale 0.35s var(--ease), box-shadow 0.35s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.4s ease-out infinite; }
.wa-float:hover { scale: 1.1; box-shadow: 0 12px 44px rgba(37, 211, 102, 0.65); }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- 14. ANIMACIONES AL HACER SCROLL ---------- */
/* .reveal: entra con fade + desplazamiento (solo si html tiene la clase .anim) */
.anim .reveal { opacity: 0; translate: 0 44px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.anim .reveal.is-in { opacity: 1; translate: 0 0; }
/* Titulares letra a letra */
.anim [data-split] { visibility: hidden; }
.anim [data-split].is-split { visibility: visible; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform, opacity; }
/* Entrada del hero */
.anim .hero__eyebrow, .anim .hero__subtitle, .anim .hero__actions, .anim .stats { opacity: 0; }

/* Respeta "reducir movimiento" del sistema */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee__track { animation: none; }
}
