/* =========================================================
   Zarvela · Sistema de diseño
   Paleta cálida y serena. Para ajustar colores o tipografía
   solo edita las variables de :root.
   ========================================================= */
/* ---------- Fuentes (alojadas en /fonts, sin depender de Google Fonts) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/cormorant-400-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/cormorant-400-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-400-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-400-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/cormorant-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/cormorant-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/manrope-var-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/manrope-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/manrope-var-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/manrope-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/manrope-var-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/manrope-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Neutros */
  --marfil: #FAF6F1;        /* fondo */
  --lino: #F1E8DF;          /* superficies */
  --blanco: #FFFFFF;
  --cacao: #2B2320;         /* texto */
  --cacao-suave: #6B5E58;   /* texto secundario */
  --linea: rgba(43, 35, 32, .14);

  /* Marca (paleta original) */
  --rosa: #D4878D;          /* acento decorativo, no usar para texto */
  --rubor: #EEC4CE;
  --terracota: #BD673D;

  /* Derivados y complementarios */
  --rosa-profundo: #9E5A60; /* texto de acento */
  --terracota-cta: #A4552F; /* botones */
  --terracota-hover: #8E4826;
  --durazno: #F4DCCB;
  --salvia: #5F7363;
  --salvia-clara: #DCE3D8;
  --eucalipto: #34443C;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radio: 20px;
  --nav-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--marfil);
  color: var(--cacao);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracota-cta); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--rubor); color: var(--cacao); }

.skip { position: absolute; left: 16px; top: -60px; background: var(--cacao); color: var(--marfil); padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(72px, 10vw, 136px) 0; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
h1, .display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.display { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
em { font-style: italic; color: var(--rosa-profundo); }
.eyebrow { display: block; font-family: var(--sans); line-height: 1.5; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--salvia); font-weight: 600; }
.muted { color: var(--cacao-suave); }
.lead { font-size: 1.1rem; color: var(--cacao-suave); max-width: 46ch; }
.small { font-size: .85rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font: 600 .9rem/1.2 var(--sans); letter-spacing: .04em; text-decoration: none;
  transition: transform .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--terracota-cta); color: var(--blanco); }
.btn-primary:hover { background: var(--terracota-hover); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(164, 85, 47, .6); }
.btn-outline { border: 1px solid var(--linea); color: var(--cacao); }
.btn-outline:hover { border-color: var(--cacao); }
.btn-light { background: var(--marfil); color: var(--eucalipto); }
.btn-light:hover { background: var(--blanco); transform: translateY(-2px); }
.btn-ghost { padding-inline: 4px; color: var(--cacao); }
.btn-ghost .arr { transition: transform .4s var(--ease); }
.btn-ghost:hover .arr { transform: translateX(6px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled { background: rgba(250, 246, 241, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--linea); }
/* Sin backdrop-filter con el menú abierto: si no, el menú fijo queda atrapado dentro de la barra */
.nav.open { background: var(--marfil); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--linea); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; justify-content: center; line-height: 1; min-height: 44px; }
.brand strong { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; letter-spacing: .28em; color: var(--rosa-profundo); }
.brand small { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cacao-suave); margin-top: 5px; }
.nav-links { display: flex; gap: 30px; list-style: none; font-size: .88rem; }
.nav-links a { text-decoration: none; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--terracota); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 11px 20px; }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--cacao); transition: transform .4s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0; background: var(--marfil);
    flex-direction: column; gap: 0; padding: 24px 16px 40px; font-size: 1rem;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav-links li { border-bottom: 1px solid var(--linea); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav.open .nav-links li { opacity: 1; transform: none; }
  .nav.open .nav-links li:nth-child(2) { transition-delay: .05s; }
  .nav.open .nav-links li:nth-child(3) { transition-delay: .1s; }
  .nav.open .nav-links li:nth-child(4) { transition-delay: .15s; }
  .nav.open .nav-links li:nth-child(5) { transition-delay: .2s; }
  .nav.open .nav-links li:nth-child(6) { transition-delay: .25s; }
  .nav-links a { display: block; padding: 18px 0; font-family: var(--serif); font-size: 1.8rem; }
  .nav-links a::after { display: none; }
  .nav-links .menu-cta { border: 0; padding-top: 28px; }
  .nav-links .menu-cta a { font-family: var(--sans); font-size: .9rem; display: flex; width: 100%; padding: 16px 26px; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 921px) { .nav-links .menu-cta { display: none; } }

/* ---------- Animaciones ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.line:nth-child(2) > span { animation-delay: .12s; }
.line:nth-child(3) > span { animation-delay: .24s; }
.fade-in { opacity: 0; animation: fade 1s var(--ease) .5s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes drift { to { transform: translate(-18px, -14px) scale(1.05); } }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); } }
@keyframes settle { to { transform: scale(1); } }

@view-transition { navigation: auto; }

/* ---------- Hero (inicio) ---------- */
.hero { padding: 32px 0 clamp(64px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hero .display { margin: 20px 0 28px; }
.hero .lead { margin-bottom: 40px; }
.hero-art { position: relative; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; right: -28px; bottom: -28px; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--salvia-clara); z-index: -1; animation: drift 12s ease-in-out infinite alternate; }
.arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--rubor); clip-path: inset(100% 0 0 0 round 999px 999px 24px 24px); animation: unveil 1.4s var(--ease) .2s forwards; }
.arch picture, .portrait picture { display: contents; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.15); animation: settle 2s var(--ease) .2s forwards; }
.note { position: absolute; left: -24px; bottom: 36px; background: var(--marfil); padding: 14px 18px; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(43, 35, 32, .35); font-size: .78rem; max-width: 220px; }
.note b { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; display: block; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 400px; width: 100%; margin-inline: auto; }
  .note { left: 0; }
}
@media (max-width: 1100px) { .hero-art::before { right: -10px; bottom: -18px; } }

/* ---------- Franja de datos ---------- */
.facts { padding: 26px 0; border-block: 1px solid var(--linea); }
.facts .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .875rem; color: var(--cacao-suave); }
.facts b { color: var(--cacao); font-weight: 600; }

/* ---------- Encabezado de sección ---------- */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 64px); }
.head h2 { max-width: 17ch; margin-top: 14px; }
.head > p { max-width: 42ch; }

/* ---------- Guía "¿No sabes por dónde empezar?" ---------- */
.guide-wrap { background: var(--lino); }
.guide { background: var(--blanco); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); box-shadow: 0 40px 80px -50px rgba(52, 68, 60, .35); }
.guide-intro h2 { margin: 14px 0 18px; }
.guide-progress { display: flex; gap: 8px; margin: 28px 0 0; }
.guide-progress i { height: 3px; flex: 1; border-radius: 3px; background: var(--lino); position: relative; overflow: hidden; }
.guide-progress i::after { content: ""; position: absolute; inset: 0; background: var(--terracota); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.guide-progress i.done::after { transform: scaleX(1); }
.guide-step { display: none; }
.guide-step.active { display: block; animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.guide-step legend, .guide-step .q { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin-bottom: 22px; }
.guide fieldset { border: 0; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.opt { text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--linea); font-size: .92rem; line-height: 1.35; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.opt:hover { border-color: var(--rosa); background: #FDF7F7; transform: translateY(-2px); }
.opt small { display: block; color: var(--cacao-suave); font-size: .78rem; margin-top: 3px; }
.guide-back { margin-top: 22px; font-size: .82rem; color: var(--cacao-suave); text-decoration: underline; text-underline-offset: 3px; }
.result-area { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; color: var(--rosa-profundo); margin: 6px 0 14px; }
.result-alt { margin-top: 18px; font-size: .88rem; color: var(--cacao-suave); }
.result-alt a { color: var(--rosa-profundo); }
.guide .actions { margin-top: 26px; }
.guide-legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--linea); font-size: .76rem; color: var(--cacao-suave); }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.step { padding-top: 28px; border-top: 1px solid var(--linea); position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--terracota); transition: width 1.4s var(--ease) .3s; }
.step.in::before { width: 100%; }
.step .n { font-family: var(--serif); font-size: 3.2rem; color: var(--rosa); line-height: 1; }
.step h3 { margin: 18px 0 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Lista de áreas ---------- */
.areas { background: var(--lino); }
.list { list-style: none; border-top: 1px solid var(--linea); }
.list a { display: grid; grid-template-columns: 64px 1fr 1.25fr 44px; align-items: center; gap: 24px; padding: 28px 10px; border-bottom: 1px solid var(--linea); text-decoration: none; position: relative; isolation: isolate; }
.list a::before { content: ""; position: absolute; inset: 0; background: var(--marfil); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; border-radius: 8px; }
.list a:hover::before, .list a:focus-visible::before { transform: scaleY(1); }
.list .idx { font-size: .75rem; letter-spacing: .2em; color: var(--salvia); }
.list h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); transition: transform .6s var(--ease), color .4s; }
.list a:hover h3 { transform: translateX(10px); color: var(--rosa-profundo); }
.list p { font-size: .92rem; color: var(--cacao-suave); }
.go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea); display: grid; place-items: center; transition: background .4s, color .4s, border-color .4s, transform .6s var(--ease); }
.list a:hover .go { background: var(--terracota-cta); color: var(--blanco); border-color: transparent; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .list a { grid-template-columns: 1fr 44px; gap: 6px 16px; padding: 22px 6px; }
  .list .idx { display: none; }
  .list p { grid-column: 1; grid-row: 2; }
  .list .go { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Sobre mí ---------- */
.about .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
.portrait { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--rubor); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.portrait.in img { transform: scale(1); }
.about blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.35; font-style: italic; margin: 18px 0 24px; }
.creds { list-style: none; margin: 30px 0 34px; }
.creds li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--linea); font-size: .9rem; }
.creds li > span:first-child { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--salvia); padding-top: 3px; }
@media (max-width: 860px) {
  .about .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .creds li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Modalidades y precio ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { background: var(--blanco); border-radius: var(--radio); padding: 34px 30px; border: 1px solid rgba(43, 35, 32, .06); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.mode:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(52, 68, 60, .35); }
.ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; background: var(--salvia-clara); color: var(--eucalipto); }
.ic svg { width: 22px; height: 22px; }
.mode:nth-child(2) .ic { background: var(--rubor); color: var(--rosa-profundo); }
.mode:nth-child(3) .ic { background: var(--durazno); color: var(--terracota-cta); }
.mode h3 { margin-bottom: 10px; }
.price { margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px 40px; align-items: center; background: var(--eucalipto); color: var(--marfil); border-radius: var(--radio); padding: 30px clamp(24px, 4vw, 44px); }
.price .amount { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.price .amount .from { display: block; font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rubor); margin-bottom: 6px; }
.price .amount small { font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-top: 8px; color: var(--rubor); }
.price p { color: rgba(250, 246, 241, .78); font-size: .92rem; max-width: 52ch; }
.price .eyebrow { color: var(--rubor); margin-bottom: 6px; }
@media (max-width: 860px) {
  .modes { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
}

/* ---------- Preguntas (acordeón) ---------- */
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); interpolate-size: allow-keywords; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.25; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rosa-profundo); }
.plus { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--linea); position: relative; transition: transform .5s var(--ease), background .4s, border-color .4s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
details[open] > summary .plus { background: var(--rubor); border-color: transparent; transform: rotate(180deg); }
details[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details::details-content { height: 0; overflow: hidden; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq .answer { padding: 0 4px 26px; color: var(--cacao-suave); max-width: 70ch; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Banda CTA ---------- */
.cta { background: var(--eucalipto); color: var(--marfil); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background: radial-gradient(circle 210px at 90px 30px, var(--rosa) 99%, transparent 100%), radial-gradient(circle 150px at calc(100% - 90px) calc(100% - 10px), var(--terracota) 99%, transparent 100%);
  background-repeat: no-repeat; animation: glow 14s ease-in-out infinite alternate; }
@keyframes glow { to { background-position: -18px -14px, 18px 14px; } }
.cta .eyebrow { color: var(--rubor); }
.cta h2 { max-width: 20ch; margin: 18px auto 22px; }
.cta p { max-width: 48ch; margin: 0 auto 38px; color: rgba(250, 246, 241, .75); }
.cta .actions { justify-content: center; }

/* ---------- Contacto ---------- */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact dl { margin: 26px 0 32px; }
.contact dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--salvia); margin-top: 20px; font-weight: 600; }
.contact dd { font-size: .98rem; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--rosa); }
.map { border-radius: var(--radio); overflow: hidden; height: 100%; min-height: 360px; background: var(--lino); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.55) sepia(.12); }
.contact-note { font-size: .875rem; color: var(--cacao-suave); margin-top: 16px; max-width: 46ch; }
.contact-note a { color: var(--rosa-profundo); }
.social { display: flex; gap: 10px; margin-top: 28px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea); display: grid; place-items: center; transition: background .4s, color .4s, border-color .4s; }
.social a:hover { background: var(--cacao); color: var(--marfil); border-color: transparent; }
.social svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } .map, .map iframe { min-height: 280px; } }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); }
.page-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.page-hero h1 { margin: 18px 0 24px; }
.page-hero .lead { margin-bottom: 34px; }
.crumbs { font-size: .875rem; color: var(--cacao-suave); }
.crumbs a { text-decoration: none; display: inline-block; padding: 12px 0; }
.crumbs a:hover { color: var(--rosa-profundo); }
.crumbs span { margin: 0 8px; opacity: .5; }
.for-you { background: var(--lino); border-radius: var(--radio); padding: 30px; }
.for-you h2 { font-size: 1.5rem; margin-bottom: 16px; }
.for-you ul { list-style: none; display: grid; gap: 10px; font-size: .92rem; }
.for-you li { padding-left: 22px; position: relative; }
.for-you li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--rosa); }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Condiciones (acordeón en áreas) ---------- */
.conditions details { border-bottom: 1px solid var(--linea); interpolate-size: allow-keywords; }
.conditions { border-top: 1px solid var(--linea); }
.conditions summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 1.2fr 34px; gap: 24px; align-items: center; padding: 26px 6px; }
.conditions summary::-webkit-details-marker { display: none; }
.conditions summary .idx { font-size: .75rem; letter-spacing: .2em; color: var(--salvia); }
.conditions summary h3 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); transition: color .3s, transform .6s var(--ease); }
.conditions summary:hover h3 { color: var(--rosa-profundo); transform: translateX(6px); }
.conditions summary p { font-size: .9rem; color: var(--cacao-suave); }
.conditions details::details-content { height: 0; overflow: hidden; transition: height .55s var(--ease), content-visibility .55s allow-discrete; }
.conditions details[open]::details-content { height: auto; }
.cond-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; padding: 6px 6px 40px 86px; }
.cond-body h4 { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--salvia); font-weight: 600; margin-bottom: 10px; }
.cond-body p { color: var(--cacao-suave); font-size: .95rem; }
.cond-body ul { list-style: none; display: grid; gap: 8px; font-size: .93rem; color: var(--cacao-suave); }
.cond-body li { padding-left: 20px; position: relative; }
.cond-body li::before { content: "—"; position: absolute; left: 0; color: var(--rosa); }
.cond-body .fit { grid-column: 1 / -1; background: var(--lino); border-radius: 14px; padding: 18px 22px; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cond-body .fit p { max-width: 62ch; }
.cond-body .fit b { color: var(--cacao); }
@media (max-width: 760px) {
  .conditions summary { grid-template-columns: 1fr 34px; gap: 4px 14px; padding: 22px 4px; }
  .conditions summary .idx { display: none; }
  .conditions summary p { grid-column: 1; grid-row: 2; }
  .conditions summary .plus { grid-column: 2; grid-row: 1 / span 2; }
  .cond-body { grid-template-columns: 1fr; padding: 0 4px 32px; }
}

/* ---------- Otras áreas ---------- */
.others { display: flex; flex-wrap: wrap; gap: 10px; }
.others a, .others span { text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--linea); font-size: .88rem; transition: background .4s, color .4s, border-color .4s; }
.others a:hover { background: var(--cacao); color: var(--marfil); border-color: transparent; }

/* ---------- Formación ---------- */
.course-list { list-style: none; border-top: 1px solid var(--linea); }
.course-list a, .course-list div.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; padding: 22px 6px; border-bottom: 1px solid var(--linea); text-decoration: none; transition: background .4s; }
.course-list a:hover { background: var(--marfil); }
.course-list h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
.course-list p { font-size: .85rem; color: var(--cacao-suave); grid-column: 1; }
.course-list .go { grid-column: 2; grid-row: 1 / span 2; }
.course-list a:hover .go { background: var(--terracota-cta); color: var(--blanco); border-color: transparent; transform: rotate(-45deg); }
.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--linea); }
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--marfil); border: 2px solid var(--rosa); }
.timeline .when { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--salvia); font-weight: 600; }
.timeline h3 { font-size: 1.4rem; margin: 4px 0 2px; }
.timeline p { font-size: .9rem; color: var(--cacao-suave); }

/* ---------- Texto legal ---------- */
.prose { color: var(--cacao); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 48px 0 14px; }
.prose h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--cacao-suave); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 10px 0 10px 22px; display: grid; gap: 6px; }
.prose a { color: var(--rosa-profundo); }
.prose strong { color: var(--cacao); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--linea); vertical-align: top; color: var(--cacao-suave); }
.prose th { color: var(--cacao); font-weight: 600; }
/* En celular la tabla se apila en tarjetas para que no se corte */
@media (max-width: 600px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { display: none; }
  .prose tr { background: var(--lino); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
  .prose td { border: 0; padding: 4px 0; }
  .prose td::before { content: attr(data-label); display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--salvia); font-weight: 600; }
}
.notice { background: var(--durazno); border-radius: 14px; padding: 16px 20px; font-size: .88rem; margin-bottom: 36px; }
.toc { background: var(--lino); border-radius: var(--radio); padding: 24px 28px; margin: 32px 0 8px; font-size: .9rem; }
.toc ol { margin: 10px 0 0 20px; display: grid; gap: 4px; }
.toc a { color: var(--cacao); }

/* ---------- Pie de página ---------- */
footer { background: var(--cacao); color: rgba(250, 246, 241, .72); padding: 72px 0 32px; font-size: .9rem; }
footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(250, 246, 241, .12); }
footer .brand strong { color: var(--rubor); }
footer .brand small { color: rgba(250, 246, 241, .5); }
footer h2 { font: 600 .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--marfil); margin-bottom: 16px; }
footer ul { list-style: none; display: grid; }
footer ul a { display: inline-block; padding: 10px 0; }
footer a { text-decoration: none; transition: color .3s; }
footer a:hover { color: var(--rubor); }
footer .about-f { margin-top: 18px; max-width: 32ch; }
.legal { padding-top: 32px; font-size: .875rem; color: rgba(250, 246, 241, .6); }
.legal-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1.4fr; gap: 20px 32px; }
.legal-grid dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(250, 246, 241, .62); margin-bottom: 6px; font-weight: 600; }
.legal-grid dd { line-height: 1.6; color: rgba(250, 246, 241, .75); }
.legal-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(250, 246, 241, .1); font-size: .875rem; color: rgba(250, 246, 241, .62); }
@media (max-width: 920px) { .legal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .legal-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 860px) { footer .top { grid-template-columns: 1fr 1fr; } footer .top > div:first-child { grid-column: 1 / -1; } }

/* ---------- Botón fijo móvil ---------- */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: none; transform: translateY(140%); transition: transform .5s var(--ease); box-shadow: 0 18px 40px -16px rgba(43, 35, 32, .55); }
.sticky-cta.show { transform: none; }
@media (max-width: 920px) { .sticky-cta { display: flex; } footer { padding-bottom: 96px; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .line > span { transform: none; }
  .fade-in { opacity: 1; }
  .arch { clip-path: none; }
  .arch img, .portrait img { transform: none; }
  @view-transition { navigation: none; }
}
