/* Colores tomados del atardecer y del rosa viejo de Esenciagi */
:root {
  --tinta: #1b343e;
  --suave: #4a626b;
  --mar: #16303a;
  --rosa: #a2564f;
  --rosa-hover: #8b453f;
  --rubor: #f3dcd7;
  --petalo: #f0c4bd;
  --papel: #fcf8f6;
  --linea: #d9c8c3;
  --titulo: "Bellefair", "Times New Roman", serif;
  --texto: "Albert Sans", system-ui, sans-serif;
  --horizonte: 59.2%;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 1.0625rem/1.65 var(--texto); color: var(--tinta); background: var(--papel); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2 { font-family: var(--titulo); font-weight: 400; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p { max-width: 60ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 24px; }
.ancho { width: min(1120px, 100% - 48px); margin-inline: auto; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.saltar { position: absolute; left: 16px; top: -80px; z-index: 9; padding: 10px 16px; background: #fff; }
.saltar:focus { top: 12px; }
.nota { font-size: .94rem; color: var(--suave); }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 30px; border: 1px solid var(--rosa); border-radius: 99px; background: var(--rosa); color: #fff; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; transition: background .2s, color .2s; }
.boton:hover { background: var(--rosa-hover); }
.boton.claro { background: #fff; border-color: #fff; color: var(--tinta); }
.boton.claro:hover { background: var(--rubor); }
.boton.linea { background: transparent; border-color: currentColor; color: #fff; }
.boton.linea:hover { background: rgb(255 255 255 / .12); }
.boton[disabled] { opacity: .6; cursor: wait; }

/* Cabecera */
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1120px, 100% - 40px); margin-inline: auto; padding: 14px 0; }
.cabecera.sobre-cielo { width: min(1200px, 100% - 48px); position: absolute; z-index: 3; top: 0; left: 50%; transform: translateX(-50%); }
.marca { font: 500 1.9rem/1.5 "WindSong", cursive; text-decoration: none; white-space: nowrap; padding-inline: .2em; margin-left: -.1em; }
.cabecera nav { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.cabecera nav a { text-decoration: none; padding: 8px 0; }
.cabecera nav a:hover { text-decoration: underline; }
.cabecera nav .nav-test { padding: 9px 20px; border: 1px solid currentColor; border-radius: 99px; }
.cabecera nav .nav-test:hover { background: var(--tinta); color: #fff; text-decoration: none; }

.abre-menu { display: none; }

/* Portada: con object-position igual al horizonte de la foto, la línea del mar queda siempre a esa altura */
.portada { position: relative; height: clamp(580px, 88svh, 860px); overflow: hidden; }
.paisaje, .mar { position: absolute; inset: 0; width: 100%; height: 100%; }
.mar { object-fit: cover; object-position: 50% var(--horizonte); }
.sol { position: absolute; top: var(--horizonte); left: 75%; width: min(27vw, 46vh, 380px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.sol img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rayos { position: absolute; inset: -33.33%; width: 166.66%; max-width: none; height: 166.66%; overflow: visible; }
.rayos line { stroke: var(--tinta); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trazo .9s ease-out forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.portada-texto { position: absolute; left: max(24px, calc(50% - 600px)); bottom: calc(100% - var(--horizonte) + 28px); width: min(50%, 640px); }
.portada h1 { font-size: clamp(2.5rem, min(5vw, 8.4vh), 4.7rem); line-height: 1.02; }
.portada-texto p { margin-top: 18px; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 500; line-height: 1.5; }

/* Pensamientos */
.pensamientos { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; padding-block: 128px; }
.pensamientos p { margin-top: 20px; }
.frases li + li { border-top: 1px solid var(--linea); }
.frases button { width: 100%; min-height: 92px; padding: 18px 4px; border: 0; background: none; text-align: left; font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--titulo); transition: color .25s, opacity .18s; }
.frases button:hover { color: var(--rosa); }
.frases button[aria-pressed="true"] { color: var(--rosa); }
.frases button.cambia { opacity: 0; }

/* Test en la portada */
.franja-test { background: var(--mar); color: #fff; padding-block: 104px; }
.franja-test .ancho { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
.franja-test p { margin: 20px 0 32px; color: #dbe5e8; }
.franja-test .ojo { width: 100%; max-width: 420px; margin-inline: auto; }
.ojo { color: var(--petalo); overflow: visible; }

/* Gise */
.gise { display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: center; padding-block: 128px; }
.gise img { width: 100%; border-radius: 50%; }
.gise p { margin-top: 20px; }
.gise .firma { font: 400 1.7rem/1.25 var(--titulo); color: var(--rosa); }

.gise + .pensamientos { padding-top: 0; }

/* Sesión en la portada */
.sesion-home { background: var(--rubor); padding-block: 96px; }
.sesion-home .ancho { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.sesion-home h2 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.sesion-home p { margin-bottom: 28px; }

/* Ebook */
.ebook { display: grid; grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; padding-block: 128px; }
.ebook .libro { order: 2; }
.libro { display: flex; flex-direction: column; width: min(330px, 100%); aspect-ratio: 1 / 1.36; margin-inline: auto; padding: 38px 30px 26px; border-radius: 3px 10px 10px 3px; color: #fff; background: linear-gradient(90deg, rgb(0 0 0 / .22), transparent 5%), linear-gradient(150deg, #543c6c, #6f4b90 48%, #93567f); box-shadow: 0 24px 48px -20px rgb(60 35 75 / .55); transform: rotate(2.5deg); }
.libro span { align-self: start; padding: 4px 12px; border: 1px solid rgb(255 255 255 / .5); border-radius: 99px; font-size: .8rem; }
.libro strong { margin-top: 24px; font: 400 2rem/1.1 var(--titulo); }
.libro em { margin-top: auto; align-self: end; font-style: normal; font-size: .85rem; }
.ebook p { margin-top: 20px; }
.ebook ul { margin-top: 16px; }
.ebook li, .para-vos li { padding: 12px 0; border-top: 1px solid var(--linea); }
.ebook .boton { margin-top: 28px; }

/* Historias */
.historias { background: var(--papel); }
.historias .ancho { padding-block: 72px; border-block: 1px solid var(--linea); }
.historias h2 { font-size: 1.5rem; color: var(--suave); }
.historias blockquote { margin: 28px 0 0; max-width: 24ch; font: 400 clamp(2rem, 4.6vw, 3.5rem)/1.1 var(--titulo); text-wrap: balance; }
.historias blockquote + blockquote { margin-left: auto; color: var(--rosa); }
.historias p { margin-top: 40px; }

/* Grupales y formularios */
.grupales { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding-block: 112px; }
.grupales p { margin-top: 20px; }
.datos { display: grid; gap: 18px; }
.datos label, .campo { display: grid; gap: 6px; font-weight: 500; }
.datos input:not([type="checkbox"]), .campo input { width: 100%; min-height: 54px; padding: 10px 16px; border: 1px solid #8a7a76; border-radius: 10px; background: #fff; color: var(--tinta); }
.datos .acepto { grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: .97rem; line-height: 1.5; }
.acepto input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--rosa); }
.datos .trampa { position: absolute; left: -9999px; }
.datos .error { margin: 0; color: #9b2c22; font-weight: 500; }
.datos .error:empty { display: none; }
.datos .boton { justify-self: start; }
.gracias { font: 400 1.9rem/1.2 var(--titulo); }

/* Pie */
.pie { background: var(--mar); color: #fff; padding-block: 52px; }
.pie .ancho { display: grid; gap: 22px; }
.pie ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.pie li a { display: inline-block; padding: 6px 0; }
.pie .nota { color: #c5d3d7; }

/* Página de la sesión */
.pagina-sesion { background: var(--rubor); }
.apertura { padding-block: 64px 96px; }
.apertura h1 { max-width: 17ch; font-size: clamp(2.6rem, 6.6vw, 5.2rem); line-height: 1.02; }
.apertura > p { margin-top: 26px; font-size: 1.15rem; }
.opciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; padding: 0; border: 0; }
.opciones label { position: relative; cursor: pointer; }
.opciones input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.opciones span { display: flex; align-items: center; min-height: 50px; padding: 10px 22px; border: 1px solid var(--rosa); border-radius: 26px; background: var(--papel); line-height: 1.3; transition: background .2s, color .2s; }
.opciones input:checked + span { background: var(--rosa); color: #fff; }
.opciones input:focus-visible + span { outline: 3px solid var(--tinta); outline-offset: 2px; }
.apertura .eco { min-height: 3.3em; font: 400 1.6rem/1.3 var(--titulo); color: var(--rosa-hover); }
.como { background: var(--papel); padding-block: 104px; }
.como ol { margin-top: 44px; counter-reset: paso; }
.como li { display: grid; grid-template-columns: 64px 5fr 7fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--linea); counter-increment: paso; }
.como li::before { content: counter(paso); font: 400 2.4rem/1 var(--titulo); color: var(--rosa); }
.para-vos { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding-block: 104px; }
.para-vos h2 { margin-bottom: 24px; font-size: 2.3rem; }
.para-vos li { border-color: #dcb5ae; }
.turno { background: var(--mar); color: #fff; padding-block: 104px; }
.turno .ancho { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.turno .opciones span { color: var(--tinta); }
.turno .opciones input:checked + span { background: var(--petalo); border-color: var(--petalo); }
.turno .opciones input:focus-visible + span { outline-color: #fff; }
.campo { margin-top: 28px; }
.mensaje output { display: block; margin: 16px 0 24px; padding: 20px 22px; border-radius: 4px 20px 20px 20px; background: #dff3d8; color: #16302a; white-space: pre-line; overflow-wrap: anywhere; }
.mensaje .nota { margin-top: 14px; color: #c5d3d7; }

/* Test: amanece a medida que se responde */
.pagina-test { --luz: 0; min-height: 100svh; display: flex; flex-direction: column; color: #fff; background: var(--mar); isolation: isolate; }
.pagina-test::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(#24505e, #4d5f70 55%, #86595b); opacity: var(--luz); transition: opacity .8s; }
.pagina-test :focus-visible { outline-color: #fff; }
#test { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(720px, 100% - 40px); margin-inline: auto; padding: 8px 0 48px; text-align: center; }
#test .ojo { width: min(300px, 62vw, 34vh); }
#test section { width: 100%; }
#test h1, #test h2 { margin-top: 14px; font-size: clamp(2rem, 5.4vw, 3.1rem); outline: none; }
#test p { margin: 18px auto 0; }
#test section > .boton { margin-top: 30px; }
#frase { min-height: 3.3em; display: grid; place-items: center; }
#test .cuenta { margin-top: 16px; color: var(--petalo); font-weight: 500; }
.respuestas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.respuestas button { min-height: 62px; padding: 8px; border: 1px solid rgb(255 255 255 / .55); border-radius: 14px; background: rgb(14 32 39 / .55); color: #fff; font-weight: 500; transition: background .15s, color .15s; }
.respuestas button:hover, .respuestas button.elegida { background: var(--petalo); color: var(--tinta); }
.volver { min-height: 48px; margin-top: 18px; padding: 8px 14px; border: 0; background: none; color: #fff; text-decoration: underline; text-underline-offset: .2em; }
#test .datos { max-width: 440px; margin: 28px auto 0; text-align: left; }
#test .datos .boton { justify-self: stretch; }
#test .datos .error { margin: 0; color: #ffd2ca; }
#test .primer-paso { margin: 32px 0; padding: 26px 28px; border-radius: 18px; background: var(--papel); color: var(--tinta); text-align: left; }
#test .primer-paso p { margin: 8px 0 0; }
#r-frase { font: 400 1.5rem/1.25 var(--titulo); color: var(--rosa); }
#r-frase:empty { display: none; }
.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* Privacidad */
.legal { padding-block: 40px 96px; }
.legal h1 { font-size: 3rem; }
.legal h2 { margin: 36px 0 8px; font-size: 1.7rem; }

@media (max-width: 820px) {
  body { font-size: 1rem; line-height: 1.6; }
  h2 { font-size: 2rem; }
  [id] { scroll-margin-top: 76px; }
  .ancho { width: calc(100% - 40px); }

  /* Barra fija con menú */
  .cabecera.con-menu { position: sticky; top: 0; left: auto; transform: none; z-index: 5; width: 100%; min-height: 60px; padding: 4px 10px 4px 20px; background: var(--papel); }
  .cabecera .marca { font-size: 1.7rem; }
  .abre-menu { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; }
  .abre-menu svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .con-menu nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0 20px 18px; background: var(--papel); box-shadow: 0 18px 24px -14px rgb(27 52 62 / .35); }
  .con-menu nav.abierto { display: flex; }
  .con-menu nav a { padding: 14px 0; border-top: 1px solid var(--linea); font-size: 1.08rem; }
  .con-menu nav .nav-test { margin-top: 8px; padding: 13px; border: 0; background: var(--rosa); color: #fff; text-align: center; }

  /* Portada */
  .portada { height: auto; }
  .paisaje { position: relative; inset: auto; height: 208px; }
  .sol { left: 50%; width: 124px; }
  .rayos line { stroke-width: 3; }
  .portada-texto { position: static; width: auto; margin: 22px 20px 0; }
  .portada h1 { font-size: clamp(2rem, 9.2vw, 2.9rem); }
  .portada-texto p { margin-top: 10px; font-size: 1.05rem; font-weight: 400; }

  /* Secciones */
  .pensamientos, .franja-test .ancho, .gise, .sesion-home .ancho, .ebook, .grupales, .para-vos, .turno .ancho { grid-template-columns: 1fr; gap: 20px; }
  .pensamientos, .gise, .ebook, .grupales { padding-block: 40px; }
  .franja-test, .sesion-home, .como, .para-vos, .turno { padding-block: 40px; }
  .pensamientos p, .gise p, .ebook p, .grupales p { margin-top: 10px; }
  .gise { padding-top: 32px; gap: 16px; }
  .gise img { width: 132px; }
  .gise .firma { font-size: 1.5rem; }
  .frases button { min-height: 60px; padding: 12px 0; font-size: 1.45rem; }
  .franja-test .ojo { max-width: 210px; }
  .franja-test p { margin: 10px 0 20px; }
  .sesion-home .ancho { gap: 10px; }
  .sesion-home h2 { font-size: 2.3rem; }
  .sesion-home p { margin-bottom: 20px; }
  .ebook .libro { order: 0; width: 170px; padding: 20px 16px 12px; }
  .libro span { font-size: .68rem; padding: 2px 9px; }
  .libro strong { margin-top: 12px; font-size: 1.15rem; }
  .libro em { font-size: .72rem; }
  .ebook li, .para-vos li { padding: 10px 0; }
  .ebook .boton { margin-top: 18px; }
  .historias .ancho { padding-block: 36px; }
  .historias blockquote { margin-top: 16px; font-size: 1.85rem; }
  .historias p { margin-top: 20px; }
  .pie { padding-block: 32px; }
  .pie .ancho { gap: 14px; }

  /* Sesión */
  .apertura { padding-block: 20px 28px; }
  .apertura h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .apertura > p { margin-top: 14px; font-size: 1.05rem; }
  .apertura .eco { min-height: 2.6em; font-size: 1.4rem; }
  .opciones { gap: 10px; margin-top: 18px; }
  .opciones span { min-height: 46px; padding: 8px 18px; }
  .como ol { margin-top: 20px; }
  .como li { grid-template-columns: 34px 1fr; gap: 4px 10px; padding: 16px 0; }
  .como li::before { font-size: 2rem; }
  .como li p { grid-column: 2; }
  .para-vos h2 { margin-bottom: 10px; font-size: 1.9rem; }
  .campo { margin-top: 20px; }
  .boton { min-height: 50px; }
  .datos .boton, .mensaje .boton { width: 100%; }
  .respuestas { grid-template-columns: 1fr 1fr; }

  /* Test */
  #test { justify-content: flex-start; padding: 12px 0 32px; }
  #test p { margin-top: 12px; }
  #test section > .boton { margin-top: 22px; }
}
