/* ==========================================================================
   LUGA Group: hoja de estilos única
   Orden: fuentes, tokens, base, layout, componentes, secciones,
   páginas legales, movimiento y responsive.
   Regla: ningún color, fuente o radio fuera de los tokens de :root.
   Identidad (tarjeta del cliente): blanco de base, azul marino y dorado de acento.
   ========================================================================== */

/* --- Fuentes autoalojadas (licencia OFL en assets/fonts). Una variable por familia. --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2'),
       url('../assets/fonts/inter-latin.woff') format('woff');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-latin.woff2') format('woff2'),
       url('../assets/fonts/playfair-display-latin.woff') format('woff');
}

/* --- Tokens: azul marino y dorado de la tarjeta de LUGA Group sobre fondo blanco.
   Los valores salen de fotos (logo y tarjeta), así que son aproximados: si el cliente
   entrega los colores oficiales, se cambian solo aquí. --- */
:root {
  --c-bg: #ffffff;            /* lienzo de la página */
  --c-surface: #f6f7fa;       /* tarjetas */
  --c-panel: #eceff4;         /* hover de botones de contorno */
  --c-line: #e2e5ec;          /* bordes finos */
  --c-line-strong: #c8ceda;   /* bordes secundarios */
  --c-navy: #0b2350;          /* titulares, botón principal y bloques azules */
  --c-navy-soft: #163a76;     /* hover del botón principal */
  --c-text: #1b2840;          /* texto de cuerpo */
  --c-text-soft: #36425c;     /* entradillas */
  --c-muted: #566078;         /* texto secundario */
  --c-on-navy-soft: #c5cde0;  /* texto secundario sobre azul marino */
  --c-white: #ffffff;         /* texto sobre azul marino */
  --c-navy-deep: #060e2a;     /* planos oscuros de las bandas */
  --c-navy-plane: #121c47;    /* plano más claro que cruza la banda */
  --c-gold: #c9a15a;          /* acento: solo líneas, bordes y detalles, nunca texto */
  --c-gold-deep: #a8803a;
  --c-gold-light: #e8cf9b;
  --c-gold-ink: #80601f;      /* dorado oscuro para texto pequeño (contraste AA sobre blanco) */
  --c-header: rgba(255, 255, 255, 0.96);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', 'Didot', 'Bodoni 72', Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-card: 10px;
  --radius-pill: 9999px;
  --page-max: 1480px;
  --header-h: 84px;           /* espacio que ocupa la barra flotante: margen de anclas */
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  scrollbar-color: var(--c-line-strong) var(--c-bg);
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-navy);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}
section[id] { scroll-margin-top: var(--header-h); }
/* Secciones que reciben el foco al usar los enlaces internos: sin contorno */
[tabindex="-1"]:focus { outline: none; }
#contenido { scroll-margin-top: var(--header-h); }

/* --- Layout --- */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 32px; }
.sec { position: relative; padding: 64px 0; }
.sec .wrap { position: relative; z-index: 1; }
/* Tarjetas apiladas: cada sección sube sobre la anterior con las esquinas superiores redondeadas */
:root { --card-r: 40px; }
main > .sec:not(#inicio), .site-footer { position: relative; margin-top: calc(var(--card-r) * -1); overflow: hidden; border-radius: var(--card-r) var(--card-r) 0 0; background: var(--c-white); box-shadow: 0 -10px 28px -12px rgba(6, 14, 42, 0.3); }
main > .sec:not(#inicio):not(.sec--planes) { padding-top: 104px; }
main > #instagram.sec.sec.sec { margin-top: 0; padding: 0 0 104px; border-radius: 0; box-shadow: none; }
#sobre-luis.sec { padding-bottom: 24px; }
.sec__inner { display: flex; flex-direction: column; gap: 40px; }

/* --- Tipografía --- */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0.01em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-navy);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--c-gold); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.section-title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
  color: var(--c-navy);
  text-wrap: balance;
}
.title-sm { margin: 0; font-size: 28px; line-height: 1.2; color: var(--c-navy); }
.lede {
  margin: 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-text-soft);
  text-wrap: pretty;
}
.lede--strong { color: var(--c-text); }
.text { margin: 0; text-wrap: pretty; }
.muted { color: var(--c-muted); }
.note { margin: 0; max-width: 460px; font-size: 15px; color: var(--c-muted); text-wrap: pretty; }

/* --- Botones y enlaces --- */
.btn-primary,
.btn-gold,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn-primary:active,
.btn-gold:active,
.btn-line:active { transform: scale(0.97); }
.btn-primary {
  gap: 8px;
  padding: 0 28px;
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 600;
  border: 1px solid var(--c-navy);
}
.btn-gold {
  gap: 8px;
  padding: 0 28px;
  background: var(--c-gold);
  color: var(--c-navy-deep);
  font-weight: 600;
  border: 1px solid var(--c-gold);
}
.btn-line {
  gap: 10px;
  padding: 0 24px;
  background: transparent;
  color: var(--c-navy);
  font-weight: 500;
  border: 1px solid var(--c-navy);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--c-navy-soft); border-color: var(--c-navy-soft); }
  .btn-gold:hover { background: var(--c-gold-light); border-color: var(--c-gold-light); }
  .btn-line:hover { background: var(--c-surface); }
}
.btn-lg { min-height: 56px; padding: 12px 36px; font-size: 16px; line-height: 1.3; text-align: center; text-wrap: balance; }
.btn-icon { width: 56px; height: 56px; min-height: 56px; padding: 0; }
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Iconos de marca (WhatsApp): relleno en lugar de trazo */
.icon--filled { fill: currentColor; stroke: none; }
.navlink {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  transition: color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .navlink:hover { color: var(--c-navy); } }
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-navy);
  text-decoration: underline;
  text-decoration-color: var(--c-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: text-decoration-thickness 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .textlink:hover { text-decoration-thickness: 2px; } }
.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--c-navy);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* --- Tarjetas y etiquetas --- */
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
}
.card__footer { margin-top: auto; }
.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
}

/* --- Marca (cabecera y pie) --- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: auto; height: 44px; }
.brand__name { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand__main { font-family: var(--font-serif); font-size: 21px; font-weight: 500; letter-spacing: 0.16em; color: var(--c-navy); }
.brand__sub { font-size: 11px; font-weight: 600; letter-spacing: 0.44em; text-transform: uppercase; color: var(--c-gold-ink); }

/* --- Cabecera: barra flotante azul oscuro, centrada y fija --- */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--c-navy) 94%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--c-white) 14%, transparent);
  border-radius: var(--radius-pill);
}
.site-header .site-header__bar { display: flex; align-items: center; gap: 36px; max-width: none; margin: 0; padding: 7px 12px 7px 18px; }
.site-header .brand { gap: 10px; }
.site-header .brand__logo { height: 38px; }
.site-header .brand__main { font-size: 19px; color: var(--c-white); }
.site-header .brand__sub { color: var(--c-gold-light); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-header .brand, .site-header .navlink { white-space: nowrap; }
.site-header .navlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); color: color-mix(in srgb, var(--c-white) 88%, transparent); }
@media (hover: hover) and (pointer: fine) { .site-header .navlink:hover { background: color-mix(in srgb, var(--c-white) 12%, transparent); color: var(--c-white); } }
.site-header :focus-visible { outline-color: var(--c-gold-light); }

/* --- Portada: foto de Luis a pantalla completa con el texto a la izquierda --- */
.sec.hero { display: flex; align-items: center; min-height: clamp(560px, 82vh, 780px); padding: 120px 0 72px; overflow: hidden; background: var(--c-navy); }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 70% 62%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c-navy-deep) 82%, transparent) 0%, color-mix(in srgb, var(--c-navy-deep) 55%, transparent) 38%, transparent 66%); }
.hero__grid { width: 100%; }
.hero__copy { max-width: 640px; display: flex; flex-direction: column; gap: 32px; }
.hero__title { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.06; color: var(--c-white); text-wrap: balance; }
.hero__actions { display: flex; align-items: flex-start; }

/* --- Servicios: tres tarjetas en una fila (una columna en pantallas estrechas) --- */
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- Sobre Luis --- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.about__id { display: flex; flex-direction: column; gap: 24px; }
.about__name-row { display: flex; align-items: center; gap: 28px; }
.avatar {
  flex: none;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-pill);
  outline: 1px solid var(--c-gold);
  outline-offset: 5px;
  margin: 6px;
  object-fit: cover;
}
.about__copy { display: flex; flex-direction: column; gap: 20px; padding-left: 28px; border-left: 2px solid var(--c-gold); }
.about__statement { margin: 0; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.2; color: var(--c-navy); text-wrap: balance; }
.about__stat { display: flex; align-items: baseline; gap: 14px; margin: 0; padding-top: 24px; border-top: 1px solid var(--c-line); }
.stat { font-family: var(--font-sans); font-size: 44px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--c-navy); }
.stat__label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }

/* --- Instagram: dos videos que abren en Instagram (sin incrustar nada de Meta) --- */
.ig { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.ig__copy { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.ig__handle {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  color: var(--c-navy);
  text-decoration: underline;
  text-decoration-color: var(--c-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: text-decoration-thickness 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .ig__handle:hover { text-decoration-thickness: 2px; } }
.ig__videos { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.reel { width: clamp(220px, 24vw, 400px); }
.reel__link { display: flex; flex-direction: column; gap: 14px; }
.reel__cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-navy);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
}
.reel__cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 500ms var(--ease-out); }
.reel__play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-navy);
}
.reel__title { font-family: var(--font-serif); font-size: 20px; line-height: 1.25; color: var(--c-navy); text-wrap: balance; }
@media (hover: hover) and (pointer: fine) { .reel__link:hover .reel__cover img { transform: scale(1.03); } }

/* --- Banda de planos (Proceso): planos azul oscuro que se cruzan, con hilos dorados --- */
.sec--planes { padding: 128px 0 200px; background: var(--c-navy-deep); color: var(--c-on-navy-soft); }
.planes { position: absolute; left: 0; width: 100%; display: block; pointer-events: none; }
.planes--top { display: none; }
.planes--bottom { bottom: 0; height: 168px; }
.planes__fill { position: absolute; top: 0; right: 0; bottom: 167px; left: 0; background: radial-gradient(70% 50% at 50% 50%, var(--c-navy-plane), var(--c-navy-deep)); pointer-events: none; }
.planes .navy { fill: var(--c-navy-deep); }
.planes .plane { fill: var(--c-navy-plane); }
.planes .gl { fill: none; stroke: url(#planes-gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.planes .gl--soft { opacity: 0.65; }
.planes .gold-a, .planes .gold-c { stop-color: var(--c-gold-deep); }
.planes .gold-b { stop-color: var(--c-gold-light); }
.sec--planes .section-title, .sec--planes .title-sm { color: var(--c-white); }
.sec--planes .step .text { color: var(--c-on-navy-soft); }
.sec--planes .step__node { background: var(--c-navy-deep); color: var(--c-gold-light); }
.sec--planes :focus-visible { outline-color: var(--c-gold-light); }

/* Esquinas claras con un plano y un hilo dorado (versión en blanco de la banda) */
.corner { position: absolute; width: min(30vw, 400px); aspect-ratio: 2 / 1; pointer-events: none; }
.corner--tr { top: 0; right: 0; }
.corner--bl { bottom: 0; left: 0; }
.corner .tint { fill: var(--c-surface); }
.corner .gl { fill: none; stroke: url(#planes-gold); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* --- Proceso: el hilo dorado une los tres pasos y termina en el botón --- */
.journey { display: flex; align-items: flex-start; gap: 40px; }
.steps { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.step::before { content: ""; position: absolute; top: 22px; left: 52px; right: -16px; height: 1px; background: var(--c-gold); }
.step:last-child::before { display: none; }
.step__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  background: var(--c-bg);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
}
.step .title-sm { font-size: 24px; }

/* --- Testimonios (sección desactivada hasta tener testimonios reales) --- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.testimonial { margin: 0; }
.testimonial__quote { margin: 0; font-size: 24px; line-height: 1.35; color: var(--c-navy); }
.testimonial__name { font-size: 14px; }

/* --- Contacto --- */
main > #contacto.sec.contact-band { padding: 168px 0 136px; overflow: hidden; }
.contact { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact__copy { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.contact__title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.04;
  text-wrap: balance;
}
.contact__channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Cue visible en los enlaces que abren pestaña nueva (los íconos sueltos ya llevan aria-label) */
a[target="_blank"]:not(.social):not(.btn-icon):not(.reel__link)::after,
.reel__title::after {
  content: "";
  display: inline-block;
  flex: none;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.4em;
  background: currentColor;
  opacity: 0.75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10 10 4M5 4h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10 10 4M5 4h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-primary::after, .btn-gold::after, .ig__handle::after { margin-left: 0; }
.site-footer__item::after { margin-left: -4px; }

/* --- Pie --- */
.site-footer { padding: 72px 0 20px; }
.site-footer__inner { display: flex; flex-direction: column; gap: 28px; }
.site-footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.site-footer__brand { flex: 1 1 300px; max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.site-footer__tagline { margin: 0; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.site-footer .brand { gap: 16px; }
.site-footer .brand__logo { height: 48px; }
.site-footer .brand__main { font-size: 24px; }
.site-footer .brand__sub { font-size: 13px; }
.site-footer__col { flex: 0 1 320px; display: flex; flex-direction: column; }
.site-footer__heading {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.site-footer .navlink { padding: 10px 0; min-height: 44px; font-size: 16px; color: var(--c-text); }
.site-footer__item { display: flex; align-items: center; gap: 12px; }
.site-footer__item .icon { flex: none; width: 20px; height: 20px; color: var(--c-gold-deep); }
.site-footer__note { margin: 0; padding: 6px 0; font-size: 16px; color: var(--c-muted); }
.site-footer__social { display: flex; gap: 12px; margin-top: 10px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  color: var(--c-navy);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.social:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .social:hover { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.site-footer__copy { margin: 0; font-size: 14px; text-wrap: balance; }
.site-footer__legal { display: flex; align-items: center; gap: 2px; font-size: 14px; color: var(--c-muted); }
.site-footer__legal a { padding: 12px 8px; color: var(--c-muted); transition: color 0.2s ease; }
.site-footer__legal a:last-child { padding-right: 0; }
@media (hover: hover) and (pointer: fine) { .site-footer__legal a:hover { color: var(--c-navy); } }

/* --- Páginas legales y 404: columna de lectura --- */
.legal { display: flex; flex-direction: column; gap: 20px; max-width: 760px; padding: 136px 0 120px; }
.legal h1 { margin: 8px 0 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; color: var(--c-navy); text-wrap: balance; }
.legal h2 { margin: 32px 0 0; font-size: 28px; line-height: 1.2; color: var(--c-navy); }
.legal p, .legal li { margin: 0; font-size: 17px; line-height: 1.7; color: var(--c-text); text-wrap: pretty; }
.legal ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 22px; }
.legal strong { font-weight: 600; color: var(--c-navy); }
.legal a:not(.btn-primary) { color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .legal a:not(.btn-primary):hover { text-decoration-thickness: 2px; } }
.legal .legal-meta { font-size: 15px; color: var(--c-muted); }
.legal .btn-primary { align-self: flex-start; }

/* --- Movimiento --- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
.draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.6s 0.4s cubic-bezier(0.3, 0.6, 0.2, 1) forwards; }
.head { opacity: 0; animation: fade 0.8s 2.4s ease forwards; }
.rise { opacity: 0; transform: translateY(12px); animation: rise 0.9s 0.1s ease forwards; }

/* --- Responsive (la navegación siempre está visible: en pantallas muy estrechas pasa a una segunda fila bajo el logo) --- */
@media (max-width: 900px) {
  .sec { padding: 48px 0; }
  :root { --card-r: 28px; }
  main > .sec:not(#inicio):not(.sec--planes) { padding-top: 76px; }
  .site-footer { padding-top: 64px; }
  /* En móvil y tableta la línea ocupa todo el ancho y baja de intensidad para no competir con el texto */
  .sec.hero { align-items: flex-start; min-height: 640px; padding: 120px 0 56px; }
  .hero__bg img { object-position: 62% 100%; }
  .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c-navy-deep) 82%, transparent) 0%, color-mix(in srgb, var(--c-navy-deep) 50%, transparent) 45%, transparent 75%); }
  .sec--planes { padding: 84px 0 150px; }
  main > #instagram.sec.sec.sec { padding-bottom: 108px; }
  .planes__fill { bottom: 111px; }
  .planes--bottom { height: 112px; }
  .corner { width: 240px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .journey { flex-direction: column; align-items: stretch; gap: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 32px 64px; gap: 8px; }
  .step__node { position: absolute; left: 0; top: 0; }
  .step::before { top: 44px; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; }
  main > #contacto.sec.contact-band { padding: 116px 0 96px; }
  .ig { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ig__videos { gap: 24px; }
  .reel { flex: 1 1 0; width: auto; min-width: 0; }
}
@media (max-width: 600px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__legal a:first-child { padding-left: 0; }
  :root { --header-h: 76px; }
  .site-header { top: 10px; }
  .site-header .site-header__bar { gap: 6px; padding: 6px 6px 6px 8px; }
  .site-nav { gap: 0; }
  .site-header .brand__name { display: none; }
  .site-header .brand__logo { height: 36px; }
  .site-header .navlink { padding: 0 6px; font-size: 13px; }
  .wrap { padding: 0 20px; }
  .sec { padding: 32px 0; }
  main > .sec:not(#inicio):not(.sec--planes) { padding-top: 60px; }
  main > #instagram.sec.sec.sec { padding-bottom: 100px; }
  main > #contacto.sec.contact-band { padding: 104px 0 84px; }
  .site-footer { padding-top: 56px; }
  .card { padding: 24px; }
  .btn-lg { padding-inline: 16px; font-size: 15px; }
  /* Un video debajo del otro; la portada se recorta a 4:5 para que cada uno quepa en pantalla */
  .ig__videos { flex-direction: column; }
  .reel { flex: none; width: 100%; }
  .reel__cover { aspect-ratio: 4 / 5; }
  .stat { font-size: 40px; }
  .about__copy { padding-left: 20px; }
  .legal { padding: 112px 0 72px; }
  .sec.hero { min-height: 800px; background: var(--c-navy-deep); }
  .hero__bg img { inset: auto 0 0 0; height: auto; aspect-ratio: 900 / 1155; object-position: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%); mask-image: linear-gradient(to bottom, transparent, #000 20%); }
  .legal h2 { margin-top: 24px; }
}

@media (max-width: 360px) {
  .site-header .brand__logo { height: 30px; }
  .site-header .navlink { padding: 0 4px; font-size: 12px; }
}

/* Quien prefiera menos movimiento ve todo en su estado final */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .head { animation: none; opacity: 1; }
  .rise { animation: none; opacity: 1; transform: none; }
  .reel__cover img, .btn-primary, .btn-gold, .btn-line, .social { transition: none; }
}
