/* ===========================================================================
   Daniela Diseños — presentación fase 1
   Dirección: editorial fashion-house × dossier de fundadora
   Paleta: marfil cálido · tinta espresso · acento coral · oro suave
   Tipos: Fraunces (display) + Manrope (texto)
   =========================================================================== */

:root {
  /* --- color (oklch, neutrales tintados hacia el coral) --- */
  --ivory:        oklch(97.5% 0.012 70);
  --ivory-2:      oklch(95% 0.018 68);
  --sand:         oklch(90% 0.03 66);
  --sand-deep:    oklch(83% 0.04 60);
  --ink:          oklch(26% 0.03 45);
  --ink-soft:     oklch(40% 0.03 45);
  --ink-mute:     oklch(54% 0.025 48);
  --coral:        oklch(66% 0.19 24);
  --coral-deep:   oklch(58% 0.20 22);
  --coral-soft:   oklch(88% 0.07 30);
  --gold:         oklch(80% 0.11 78);
  --plum:         oklch(42% 0.11 8);
  --line:         oklch(85% 0.02 60);

  --bg:           var(--ivory);
  --fg:           var(--ink);

  /* --- type scale (fluid) --- */
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem);
  --step-2:  clamp(1.7rem, 1.3rem + 1.9vw, 2.6rem);
  --step-3:  clamp(2.3rem, 1.6rem + 3.4vw, 4rem);
  --step-4:  clamp(3rem, 1.8rem + 6vw, 6.5rem);
  --step-5:  clamp(3.6rem, 1.6rem + 10vw, 9rem);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1240px;
  --pad: clamp(1.15rem, 0.6rem + 3vw, 4rem);
  --radius: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.6, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  background-image:
    radial-gradient(120% 80% at 100% -10%, oklch(90% 0.06 40 / 0.55), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, oklch(88% 0.05 78 / 0.5), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  font-optical-sizing: auto;
}
p { margin: 0 0 1em; }

::selection { background: var(--coral); color: var(--ivory); }

/* --- utilidades --- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: 0.6em;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 2.2rem; height: 2px; background: var(--coral); display: inline-block;
}
.lead { font-size: var(--step-1); line-height: 1.4; color: var(--ink-soft); font-weight: 400; }
.mute { color: var(--ink-mute); }
.serif { font-family: var(--serif); }
.coral { color: var(--coral-deep); }

/* ===================== NAV / PESTAÑAS ===================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: oklch(97.5% 0.012 70 / 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -20px oklch(26% 0.03 45 / 0.6);
}
.topbar__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.6rem var(--pad);
  display: flex; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 0.55rem; text-decoration: none; margin-right: auto; }
.brand__mark {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.03em; color: var(--ink);
}
.brand__mark em { color: var(--coral-deep); font-style: italic; }
.brand__tag {
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
}
.tabs {
  display: flex; gap: 0.1rem; flex-basis: 100%; order: 3;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 0.2rem;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 0.86rem;
  color: var(--ink-mute); padding: 0.45rem 0.8rem; border-radius: 999px;
  white-space: nowrap; transition: color 0.25s var(--ease), background 0.25s var(--ease);
  position: relative;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ivory); background: var(--ink); }
.tab__num { font-family: var(--serif); font-style: italic; opacity: 0.6; margin-right: 0.35em; }

.menu-toggle { display: none; }

/* ===================== PANELS ===================== */
.panel { display: none; }
.panel.is-active { display: block; animation: panelIn 0.6s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

section.block { padding-block: clamp(3rem, 2rem + 5vw, 7rem); }

/* aire bajo la cabecera fija en paneles que no abren con hero */
.panel > .wrap.block:first-child { padding-top: clamp(2.75rem, 2rem + 3.5vw, 5.5rem); }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 90vh; display: flex; align-items: flex-end;
  padding-block: clamp(3rem, 6vh, 7rem) clamp(2.5rem, 5vh, 5rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, oklch(20% 0.03 40 / 0.86) 0%, oklch(20% 0.03 40 / 0.55) 42%, oklch(20% 0.03 40 / 0.18) 78%),
    linear-gradient(180deg, oklch(20% 0.03 40 / 0.45) 0%, oklch(20% 0.03 40 / 0.1) 32%, oklch(20% 0.03 40 / 0.55) 100%);
}
.hero__inner { position: relative; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.hero h1 {
  font-size: var(--step-5); font-weight: 380; letter-spacing: -0.035em;
  max-width: 15ch; color: var(--ivory);
  text-shadow: 0 2px 30px oklch(20% 0.03 40 / 0.55);
}
.hero h1 em { font-style: italic; color: oklch(78% 0.16 26); }
.hero .lead { max-width: 46ch; margin-top: 1.4rem; color: oklch(93% 0.015 70); text-shadow: 0 1px 16px oklch(20% 0.03 40 / 0.6); }
.hero .eyebrow { color: oklch(86% 0.09 34); }
.hero .eyebrow::before { background: oklch(78% 0.16 26); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; margin-top: 2.2rem; align-items: center; }
.hero__scroll { font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: oklch(84% 0.02 60); font-weight: 700; }

/* botones */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 0.98rem;
  padding: 0.85em 1.5em; border-radius: 999px; border: 0; text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.btn--primary { background: var(--coral-deep); color: var(--ivory); box-shadow: 0 10px 30px -12px var(--coral-deep); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--coral-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { transform: translateY(-2px); }
.btn .arw { transition: transform 0.3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* ===================== SECCIÓN: encabezados ===================== */
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head .lead { margin-top: 1.1rem; }

/* ===================== GRID / TARJETAS ===================== */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: oklch(99% 0.008 70 / 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2vw, 1.9rem);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -30px var(--ink); border-color: var(--sand-deep); }
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card__k { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--coral-deep); }

/* stat / cifras */
.stat { }
.stat__n { font-family: var(--serif); font-weight: 500; font-size: var(--step-3); line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.stat__n b { color: var(--coral-deep); font-weight: 500; }
.stat__l { display: block; margin-top: 0.6rem; font-size: var(--step--1); color: var(--ink-mute); max-width: 26ch; }

/* franja oscura */
.dark-band { background: var(--ink); color: var(--ivory); border-radius: clamp(20px, 3vw, 34px); }
.dark-band .eyebrow { color: var(--gold); }
.dark-band .eyebrow::before { background: var(--gold); }
.dark-band h2, .dark-band h3 { color: var(--ivory); }
.dark-band .mute { color: oklch(80% 0.02 60); }
.dark-band .stat__n { color: var(--ivory); }
.dark-band .stat__n b { color: var(--gold); }

/* ===================== FLUJO (cómo funciona) ===================== */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.flow__step { position: relative; padding-top: 2.6rem; }
.flow__step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--coral-deep);
}
.flow__step h4 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.flow__step .bar { height: 3px; background: linear-gradient(90deg, var(--coral), transparent); border-radius: 3px; margin-bottom: 1rem; }

/* ===================== TABLA COMPARATIVA ===================== */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; background: oklch(99% 0.008 70 / 0.6); }
.cmp th, .cmp td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.cmp thead th { font-family: var(--sans); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); background: var(--ivory-2); }
.cmp tbody tr:hover { background: var(--coral-soft); }
.cmp td strong { font-family: var(--serif); font-weight: 600; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2em 0.7em; border-radius: 999px; background: var(--sand); color: var(--ink-soft); }
.pill--good { background: oklch(88% 0.09 150); color: oklch(35% 0.09 150); }
.pill--coral { background: var(--coral-soft); color: var(--coral-deep); }
.dots { color: var(--coral); letter-spacing: 2px; }
.dots .off { color: var(--sand-deep); }

/* ===================== NICHOS (chips interactivos) ===================== */
.niche-lab { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.2rem, 3vw, 2.6rem); align-items: start; }
.niche-list { display: flex; flex-direction: column; gap: 0.5rem; }
.niche-btn {
  text-align: left; border: 1px solid var(--line); background: oklch(99% 0.008 70 / 0.6);
  border-radius: 14px; padding: 0.9rem 1.1rem; cursor: pointer; font-family: var(--sans);
  font-weight: 600; color: var(--ink-soft); transition: all 0.3s var(--ease); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.niche-btn:hover { border-color: var(--coral); color: var(--ink); }
.niche-btn[aria-selected="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.niche-btn[aria-selected="true"] .niche-btn__i { color: var(--gold); }
.niche-btn__i { font-family: var(--serif); font-style: italic; color: var(--coral-deep); }
.niche-panel { position: relative; min-height: 340px; }
.niche-detail { display: none; animation: panelIn 0.5s var(--ease) both; }
.niche-detail.is-active { display: grid; grid-template-columns: 1fr 0.9fr; gap: 1.6rem; }
.niche-detail__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.niche-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.niche-detail h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.tagrow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }

/* ===================== INSPIRACIÓN (referentes) ===================== */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.ref {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem;
  background: oklch(99% 0.008 70 / 0.6); transition: all 0.3s var(--ease);
}
.ref:hover { transform: translateY(-3px); border-color: var(--coral); box-shadow: 0 20px 40px -28px var(--ink); }
.ref__h { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.15rem; }
.ref__u { font-size: 0.82rem; color: var(--coral-deep); font-weight: 700; }
.ref__d { font-size: 0.9rem; color: var(--ink-mute); margin-top: 0.5rem; }

/* ===================== HOJA DE RUTA (timeline) ===================== */
.timeline { position: relative; margin-left: 0.5rem; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 2px; background: linear-gradient(var(--coral), var(--sand-deep)); }
.tl { position: relative; padding: 0 0 2.2rem 2.2rem; }
.tl::before { content: ""; position: absolute; left: -5px; top: 0.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--ivory); }
.tl__k { font-family: var(--serif); font-style: italic; color: var(--coral-deep); font-size: 0.95rem; }
.tl h4 { font-size: var(--step-1); margin: 0.15rem 0 0.5rem; }

/* plan 30 días */
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.week { border-radius: var(--radius); padding: 1.4rem; background: oklch(99% 0.008 70 / 0.6); border: 1px solid var(--line); }
.week__n { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--coral-deep); }
.week h4 { font-size: 1.15rem; margin: 0.3rem 0 0.7rem; }
.week ul { margin: 0; padding-left: 1.1rem; }
.week li { margin-bottom: 0.4rem; font-size: 0.92rem; color: var(--ink-soft); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checklist .ck { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--coral-soft); color: var(--coral-deep); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; margin-top: 0.15rem; }

/* ===================== CIERRE / CTA ===================== */
.closing { position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 34px); color: var(--ivory); }
.closing__bg { position: absolute; inset: 0; z-index: -1; }
.closing__bg img { width: 100%; height: 100%; object-fit: cover; }
.closing__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, oklch(26% 0.03 45 / 0.92), oklch(26% 0.03 45 / 0.55)); }
.closing__inner { padding: clamp(2.5rem, 6vw, 6rem); }
.closing h2 { color: var(--ivory); font-size: var(--step-4); max-width: 16ch; }
.closing .lead { color: oklch(90% 0.02 60); }
.note-parents { border-left: 3px solid var(--gold); padding-left: 1.2rem; font-style: italic; font-family: var(--serif); font-size: var(--step-1); line-height: 1.4; }

/* footer */
.foot { padding-block: 3rem 4rem; text-align: center; color: var(--ink-mute); font-size: 0.85rem; }
.foot a { color: var(--coral-deep); text-decoration: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .weeks { grid-template-columns: repeat(2, 1fr); }
  .niche-lab { grid-template-columns: 1fr; }
  .niche-detail.is-active { grid-template-columns: 1fr; }
  .niche-detail__media { aspect-ratio: 16/10; }
}
@media (max-width: 760px) {
  /* Hero: scrim más uniforme y oscuro para leer el texto claro en móvil */
  .hero__bg::after {
    background:
      linear-gradient(180deg, oklch(20% 0.03 40 / 0.62) 0%, oklch(20% 0.03 40 / 0.4) 45%, oklch(20% 0.03 40 / 0.72) 100%);
  }
  .hero { min-height: 78vh; align-items: center; padding-block: clamp(2rem, 12vh, 5rem); }
  .hero h1 { font-size: clamp(2.5rem, 8vw, 3.4rem); max-width: 18ch; }
  .hero .lead { font-size: 1.05rem; }
  .hero__meta { gap: 1rem 1.4rem; margin-top: 1.8rem; }
  .hero__meta .btn { width: 100%; justify-content: center; }
  .hero__scroll { width: 100%; text-align: center; }
  /* pestañas: targets táctiles cómodos */
  .tab { padding: 0.6rem 0.95rem; font-size: 0.92rem; }
  .tab__num { display: none; }
  /* botones a lo ancho y bien tocables */
  .btn { padding: 0.95em 1.4em; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .weeks { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .topbar__inner { gap: 0.4rem 0.6rem; }
  .section-head h2, .hero h1 { hyphens: auto; }
  .stat__n { font-size: clamp(2.2rem, 12vw, 3rem); }
  .dark-band { border-radius: 20px; }
  .closing { border-radius: 20px; }
  .note-parents { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
