/* ===== Serena Espacios — estilos ===== */
@font-face { font-family: "Cormorant Garamond"; src: url("/fuentes/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fuentes/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fuentes/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fuentes/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fuentes/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --azul: #204862;
  --azul-hondo: #173649;
  --dorado: #a68565;
  --dorado-texto: #85674a; /* dorado con contraste suficiente para texto chico */
  --arena: #f3ece2;
  --crema: #fbf8f3;
  --blanco: #ffffff;
  --tinta: #1c2b36;
  --suave: #4f5d68;
  --linea: #e4d9cb;
  --exito: #2f6b4f;
  --error: #a3362c;
  --radio: 18px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.1875rem; /* 19px: cómodo para leer */
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-underline-offset: 3px; }
a:hover { color: var(--azul-hondo); }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; border-radius: 6px; }

.saltar { position: absolute; left: -999px; top: 0; background: var(--azul); color: #fff; padding: 12px 18px; z-index: 10; }
.saltar:focus { left: 12px; top: 12px; }

.ancho { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ancho-texto { width: min(720px, 100% - 32px); margin-inline: auto; }
.ancho-video { width: min(960px, 100% - 32px); margin-inline: auto; }
.centro { text-align: center; }

/* ----- Tipografía ----- */
.titulo {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--azul);
  font-size: clamp(2.1rem, 1.6rem + 2vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
.titulo--grande { font-size: clamp(2.5rem, 1.8rem + 3.2vw, 4rem); }
.titulo--centro { text-align: center; }
.subtitulo {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--azul);
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 0 0 .5em;
}
.antetitulo, .meta {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dorado-texto);
  margin: 0 0 .9em;
}
.antetitulo--centro { text-align: center; }
.meta { letter-spacing: .14em; }

/* ----- Botones ----- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 60px; padding: .8em 1.8em;
  border-radius: 999px; border: 2px solid var(--azul);
  font-family: var(--sans); font-size: 1.1rem; font-weight: 600;
  text-decoration: none; cursor: pointer; text-align: center; line-height: 1.25;
  transition: background .2s, color .2s, transform .2s;
}
.boton--lleno { background: var(--azul); color: #fff; }
.boton--lleno:hover { background: var(--azul-hondo); color: #fff; }
.boton--borde { background: transparent; color: var(--azul); }
.boton--borde:hover { background: var(--azul); color: #fff; }
.boton--claro { background: var(--crema); color: var(--azul); border-color: var(--crema); }
.boton--claro:hover { background: #fff; color: var(--azul-hondo); }
.boton--ancho { width: 100%; }
.botones { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.icono { width: 1.35em; height: 1.35em; flex: none; }

/* ----- Cabecera ----- */
.franja { background: var(--azul); color: #f2ebe1; font-size: .95rem; }
.franja__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.franja a { color: #fff; }
.franja span { opacity: .85; }
@media (max-width: 640px) { .franja span { display: none; } .franja__in { justify-content: center; } }
.cabecera { text-align: center; padding: 28px 16px 8px; }
.cabecera__logo { display: inline-block; }
.cabecera__logo img { width: 150px; }
@media (min-width: 900px) { .cabecera__logo img { width: 170px; } }

/* ----- Arco: marco de imagen ----- */
.arco {
  display: block; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radio) var(--radio);
  background: var(--arena);
  box-shadow: 0 0 0 1px var(--linea);
}
.arco img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Portada ----- */
.heroe { display: grid; gap: 40px; align-items: center; padding: 36px 0 64px; }
.heroe__bajada { font-size: 1.25rem; color: var(--suave); max-width: 32em; margin: 0 0 1.6em; }
.heroe__img { max-width: 420px; width: 100%; justify-self: center; position: relative; }
@media (min-width: 900px) {
  .heroe { grid-template-columns: 1.15fr .85fr; padding: 48px 0 88px; }
}

.pasos { background: var(--arena); padding: 72px 0; position: relative; overflow: hidden; }
.pasos::before {
  content: ""; position: absolute; right: -40px; top: -30px; width: 230px; height: 414px;
  background: url("/img/isotipo.png") no-repeat center / contain; opacity: .07; pointer-events: none;
}
.pasos__lista { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; }
.pasos__lista li {
  background: var(--crema); border-radius: var(--radio); padding: 28px 26px;
  box-shadow: 0 0 0 1px var(--linea); position: relative;
}
.pasos__lista h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--azul); margin: 12px 0 6px; line-height: 1.15; }
.pasos__lista p { margin: 0; color: var(--suave); }
.pasos__num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--azul); color: #fff; font-weight: 600; font-size: 1.15rem;
}
.pasos__num--chico { width: 36px; height: 36px; font-size: 1rem; margin-right: .4em; }
@media (min-width: 820px) { .pasos__lista { grid-template-columns: repeat(3, 1fr); } }

.clases { padding: 80px 0 40px; }
.grilla { display: grid; gap: 36px; margin-top: 36px; }
@media (min-width: 700px) { .grilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grilla { grid-template-columns: repeat(3, 1fr); } }

.tarjeta { display: flex; flex-direction: column; }
.tarjeta__img { transition: transform .35s ease; }
.tarjeta:hover .tarjeta__img { transform: translateY(-4px); }
.tarjeta__cuerpo { padding: 22px 4px 0; display: flex; flex-direction: column; flex: 1; }
.tarjeta__titulo { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1.1; margin: 0 0 .35em; }
.tarjeta__titulo a { color: var(--azul); text-decoration: none; }
.tarjeta__resumen { color: var(--suave); margin: 0 0 1em; flex: 1; }
.precio { margin: 0 0 1em; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .6em; }
.precio strong { font-size: 1.45rem; color: var(--tinta); font-weight: 600; }
.precio span { color: var(--suave); font-size: 1rem; }

.preguntas { padding: 60px 0 90px; }
.pregunta { border-bottom: 1px solid var(--linea); }
.pregunta summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; color: var(--azul); font-size: 1.15rem;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem; font-weight: 400; color: var(--dorado);
}
.pregunta[open] summary::after { content: "–"; }
.pregunta p { margin: 0 0 22px; color: var(--suave); }

/* ----- Detalle de clase ----- */
.volver { padding: 8px 0 0; font-size: 1.05rem; }
.detalle { display: grid; gap: 36px; padding: 24px 0 80px; align-items: start; }
.detalle__img { max-width: 260px; width: 70%; justify-self: center; }
.detalle__desc { font-size: 1.2rem; color: var(--suave); margin: 0 0 1.4em; }
@media (min-width: 900px) {
  .detalle { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .detalle__img { position: sticky; top: 24px; max-width: 440px; width: 100%; }
}

.materiales { margin: 0 0 32px; }
.materiales ul, .lista { margin: 0; padding: 0; list-style: none; }
.materiales li, .lista li { position: relative; padding: 6px 0 6px 28px; }
.materiales li::before, .lista li::before {
  content: ""; position: absolute; left: 4px; top: .95em; width: 9px; height: 9px; border-radius: 50%; background: var(--dorado);
}

.compra {
  background: var(--blanco); border-radius: 24px; padding: 30px 24px;
  box-shadow: 0 0 0 1px var(--linea), 0 18px 40px -28px rgba(32, 72, 98, .35);
  margin: 8px 0 24px;
}
.compra .subtitulo { margin-bottom: .8em; }
.compra__paso { display: flex; align-items: center; font-weight: 600; font-size: 1.15rem; color: var(--tinta); margin: 18px 0 6px; }
.ayuda { color: var(--suave); font-size: 1rem; margin: 0 0 10px; }
.ayuda--centro { text-align: center; margin-top: 14px; }
.campo {
  width: 100%; min-height: 62px; padding: 12px 18px;
  border: 2px solid #b9ab99; border-radius: 14px; background: #fff;
  font: inherit; font-size: 1.2rem; color: var(--tinta);
}
.campo:focus { border-color: var(--azul); outline: 3px solid rgba(166, 133, 101, .45); outline-offset: 1px; }
.campo[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-weight: 600; margin: 8px 0 0; min-height: 0; }
.error:empty { display: none; }
.sugerencia { background: #fff6e8; border: 1px solid #e9cfa4; border-radius: 12px; padding: 12px 14px; margin: 10px 0 0; }
.sugerencia button {
  font: inherit; font-weight: 600; color: var(--azul); background: none; border: 0; padding: 4px 0;
  text-decoration: underline; cursor: pointer; min-height: 44px;
}

.pago {
  display: block; width: 100%; text-align: left; cursor: pointer;
  margin: 12px 0 0; padding: 16px 22px; min-height: 84px;
  border-radius: 18px; border: 2px solid var(--azul);
  background: var(--azul); color: #fff; font-family: var(--sans);
  transition: background .2s, transform .15s;
}
.pago:hover { background: var(--azul-hondo); }
.pago:active { transform: scale(.99); }
.pago--claro { background: var(--crema); color: var(--azul); }
.pago--claro:hover { background: var(--arena); }
.pago__donde { display: block; font-size: .95rem; opacity: .85; margin-bottom: 2px; }
.pago__linea { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pago__como { font-size: 1.2rem; font-weight: 600; }
.pago__monto { font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.pago[disabled] { opacity: .6; cursor: progress; }

/* ----- Ver clase ----- */
.ver { padding: 16px 0 80px; }
.exito {
  background: #eaf3ee; border: 1px solid #b8d6c5; color: var(--tinta);
  border-radius: var(--radio); padding: 20px 22px; margin: 0 0 28px;
}
.exito p { margin: 0; }
.exito__titulo { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--exito); margin-bottom: 4px !important; line-height: 1.2; }
.video { margin: 0 0 32px; }
.video__marco {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden;
  background: var(--azul-hondo); box-shadow: 0 24px 50px -30px rgba(23, 54, 73, .6);
}
.video__marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__alt { font-size: 1rem; color: var(--suave); margin: 10px 0 0; text-align: center; }
.ver__abajo { display: grid; gap: 28px; margin: 12px 0 36px; }
@media (min-width: 820px) { .ver__abajo { grid-template-columns: 1fr 1fr; } }
.caja { background: var(--arena); border-radius: var(--radio); padding: 26px 24px; }
.caja p { margin-top: 0; }

/* ----- Avisos, recuperar, revisión ----- */
.aviso { text-align: center; padding: 40px 0 90px; }
.aviso__iso { width: 46px; margin: 0 auto 18px; }
.aviso__texto { font-size: 1.2rem; color: var(--suave); margin: 0 auto 1.5em; max-width: 34em; }
.aviso--error .titulo { color: var(--azul); }
.recuperar { padding: 24px 0 80px; }
.recuperar .compra { margin-top: 24px; }
.recuperar .boton--ancho { margin-top: 16px; }
.mensaje { border-radius: 14px; padding: 16px 18px; margin: 18px 0 0; font-weight: 500; }
.mensaje--ok { background: #eaf3ee; border: 1px solid #b8d6c5; }
.mensaje--error { background: #fbeceb; border: 1px solid #e6bdb8; }
.mensaje--info { background: #fff6e8; border: 1px solid #e9cfa4; }
.revisar { padding: 24px 0 80px; }
.chequeos { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.chequeo { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--linea); }
.chequeo > span { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.chequeo--ok > span { color: var(--exito); }
.chequeo--mal > span { color: var(--error); }
.chequeo small { color: var(--suave); font-size: .95rem; }
.lista--error li::before { background: var(--error); }
code { background: var(--arena); padding: 2px 6px; border-radius: 6px; word-break: break-all; font-size: .95em; }

/* ----- Pie ----- */
.pie { background: var(--azul); color: #efe7dc; text-align: center; padding: 56px 0 40px; }
.pie__iso { width: 34px; margin: 0 auto 18px; filter: brightness(0) invert(1); opacity: .85; }
.pie__ayuda { font-family: var(--serif); font-size: 1.8rem; line-height: 1.25; color: #fff; margin: 0 0 18px; }
.pie__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 34px 0 18px; }
.pie__links a { color: #fff; }
.pie__firma { font-size: .9rem; opacity: .75; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
