/* CríaGana · sitio web. Colores y letras del manual de marca. */
:root {
  --noche: #0F2744;
  --noche-2: #1B3A61;
  --ganancia: #1E9E5A;
  --ganancia-claro: #4FD18B;
  --moneda: #F5B83D;
  --paja: #FBF7EE;
  --tinta: #0F1B2D;
  --gris: #5B6B7F;
  --linea: #E3E8EF;
  --rojo: #B42318;
  --titulos: "Plus Jakarta Sans", system-ui, sans-serif;
  --texto: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--texto);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tinta);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; margin-bottom: .6em; }
h3 { font-size: 1.25rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--moneda); outline-offset: 3px; border-radius: 6px; }

.envoltura { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 700px) { .envoltura { padding: 0 32px; } }

/* ---------- Marca y botones ---------- */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  font-family: var(--titulos); font-weight: 800; font-size: 1.6rem; letter-spacing: -.025em; }
.marca .simbolo { height: 36px; width: auto; }
.marca b { color: var(--ganancia-claro); font-weight: 800; }

.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 32px; border-radius: 999px;
  background: var(--moneda); color: var(--noche);
  font-family: var(--titulos); font-weight: 800; font-size: 1.15rem; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(245, 184, 61, .7);
  transition: transform .15s ease, box-shadow .15s ease;
}
.boton:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(245, 184, 61, .85); }
.boton:active { transform: translateY(1px); }
.boton-chico { min-height: 44px; padding: 0 20px; font-size: 1rem; box-shadow: none; }

/* ---------- Portada ---------- */
.hero { background: var(--noche); color: #fff; padding-bottom: 120px; overflow: hidden; }
.barra { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.hero-grid { display: grid; gap: 28px; padding-top: 28px; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 12ch; }
.entrada { font-size: 1.2rem; color: #D3DCE8; margin-top: 20px; max-width: 34ch; }
.acciones { margin-top: 28px; }
.nota { font-size: .95rem; color: #A9B8CC; margin-top: 14px; max-width: 32ch; }
.hero-foto img { width: 100%; border-radius: 22px; aspect-ratio: 800 / 729; object-fit: cover; }

@media (min-width: 900px) {
  .hero { padding-bottom: 150px; }
  .hero-grid { grid-template-columns: 1fr 1.08fr; align-items: center; gap: 56px; padding-top: 40px; }
  .hero-foto img { aspect-ratio: 16 / 12; border-radius: 28px; object-position: 72% 50%; }
}

/* ---------- Calculadora ---------- */
.calculadora { margin-top: -96px; position: relative; }
.calc-tarjeta {
  display: grid; background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(15, 39, 68, .45), 0 0 0 1px var(--linea);
}
.calc-campos { padding: 28px 22px; }
.calc-campos h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .25em; }
.calc-ayuda { color: var(--gris); font-size: 1rem; margin-bottom: 22px; }
.campos { display: grid; gap: 18px; }
.campo { display: grid; gap: 6px; }
.campo > span:first-child { font-weight: 600; font-size: 1rem; }
.campo small { color: var(--gris); font-size: .875rem; }
.campo input, .caja {
  width: 100%; min-height: 58px; border: 2px solid var(--linea); border-radius: 14px;
  font: 600 1.25rem/1 var(--texto); color: var(--tinta); background: #fff;
}
.campo > input { padding: 0 16px; }
.caja { display: flex; align-items: center; padding: 0 16px; gap: 8px; }
.caja input { border: 0; min-height: 54px; padding: 0; flex: 1; min-width: 0; outline: none; }
.caja i { font-style: normal; color: var(--gris); font-weight: 600; }
.campo > input:focus, .caja:focus-within { border-color: var(--noche); }
.campo input::-webkit-outer-spin-button, .campo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.campo input[type=number] { -moz-appearance: textfield; }

.calc-resultado { background: #EAF6EF; padding: 28px 22px 30px; display: flex; flex-direction: column; justify-content: center; }
.res-titulo { font-weight: 600; color: var(--noche); }
.res-precio { font-family: var(--titulos); font-weight: 800; color: var(--noche); line-height: 1; margin: 8px 0 18px; }
.res-precio span { font-size: clamp(3rem, 8vw, 4.4rem); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.res-precio small { font-size: 1.1rem; color: var(--gris); font-weight: 700; letter-spacing: 0; }
.res-linea, .res-ganancia { font-size: 1.05rem; }
.res-linea { padding-top: 14px; border-top: 2px solid rgba(15, 39, 68, .1); }
.res-ganancia { color: var(--ganancia); font-weight: 600; margin-top: 6px; }
.res-ganancia.pierde { color: var(--rojo); }
.res-nota { color: var(--gris); font-size: .9rem; margin-top: 18px; }

@media (min-width: 900px) {
  .calculadora { margin-top: -110px; }
  .calc-tarjeta { grid-template-columns: 1.25fr 1fr; }
  .calc-campos { padding: 40px 40px 44px; }
  .campos { grid-template-columns: 1fr 1fr; gap: 22px 20px; align-items: start; }
  .calc-resultado { padding: 40px; }
}

/* ---------- Secciones ---------- */
.problema, .como, .preguntas { padding: 88px 0; }
.dos-col { display: grid; gap: 36px; align-items: center; }
.dos-col p + p { margin-top: 1em; }
.dos-col > div > p { max-width: 58ch; }
@media (min-width: 900px) {
  .dos-col { grid-template-columns: 1fr 1fr; gap: 72px; }
  .problema, .como, .preguntas { padding: 120px 0; }
}
.foto-redonda { border-radius: 24px; width: 100%; }

.olvidos { list-style: none; margin: 24px 0; display: grid; gap: 14px; }
.olvidos li { position: relative; padding-left: 34px; max-width: 54ch; }
.olvidos li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--rojo); background: linear-gradient(45deg, transparent 44%, var(--rojo) 44% 56%, transparent 56%);
}
.remate { font-family: var(--titulos); font-weight: 700; font-size: 1.3rem; color: var(--noche); line-height: 1.35; }

.como { background: var(--paja); }
.foto-celular { border-radius: 24px; width: 100%; max-width: 480px; justify-self: center; }
@media (min-width: 900px) { .dos-col-invertida { grid-template-columns: .85fr 1.15fr; } }

.pasos { list-style: none; counter-reset: paso; display: grid; gap: 22px; margin-bottom: 40px; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; }
.pasos li::before {
  content: counter(paso); grid-row: span 2;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--noche); color: var(--moneda); font-family: var(--titulos); font-weight: 800; font-size: 1.4rem;
}
.pasos h3 { align-self: end; }
.pasos p { color: var(--gris); }
.sub-lista { margin-bottom: 14px; }
.incluye { list-style: none; display: grid; gap: 10px 28px; }
@media (min-width: 600px) { .incluye { grid-template-columns: 1fr 1fr; } }
.incluye li { position: relative; padding-left: 30px; font-weight: 500; line-height: 1.4; }
.incluye li::before {
  content: ""; position: absolute; left: 2px; top: .25em; width: 8px; height: 14px;
  border: solid var(--ganancia); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* ---------- Especies ---------- */
.especies { background: var(--noche); color: #fff; padding: 88px 0 96px; }
.especies-intro { color: #C6D2E1; max-width: 52ch; margin-bottom: 36px; }
.tira {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 8px; scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.tira::-webkit-scrollbar { display: none; }
.tira li { position: relative; scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: var(--noche-2); }
.tira img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tira li::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(15, 39, 68, .92)); }
.tira span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-family: var(--titulos); font-weight: 800; font-size: 1.25rem; line-height: 1.15; }
.tira em { position: absolute; top: 14px; left: 14px; z-index: 1; font-style: normal; font-weight: 700; font-size: .85rem;
  background: var(--moneda); color: var(--noche); padding: 4px 12px; border-radius: 999px; }
.tira .pronto img { filter: saturate(.75); }
@media (min-width: 700px) { .tira { grid-auto-columns: 38%; padding: 0 32px 8px; scroll-padding-inline: 32px; } }
@media (min-width: 1100px) {
  .tira { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; max-width: 1160px; margin: 0 auto; }
  .tira span { font-size: 1.1rem; }
}

/* ---------- Preguntas ---------- */
.dos-col-preguntas { align-items: start; }
.foto-familia { margin-top: 8px; display: none; }
@media (min-width: 900px) { .dos-col-preguntas { grid-template-columns: .9fr 1.1fr; } .foto-familia { display: block; } }
.lista-preguntas { border-top: 2px solid var(--linea); }
details { border-bottom: 2px solid var(--linea); }
summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--titulos); font-weight: 700; font-size: 1.2rem; line-height: 1.3;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border: solid var(--noche); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details p { padding: 0 0 22px; color: #3A4B61; max-width: 60ch; }

/* ---------- Cierre y pie ---------- */
.cierre {
  color: #fff; text-align: center; padding: 110px 0;
  background: linear-gradient(rgba(15, 39, 68, .78), rgba(15, 39, 68, .88)), url("/img/paisaje-1600.webp") center 60% / cover;
}
.cierre h2 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); max-width: 16ch; margin: 0 auto .4em; }
.cierre p { color: #D3DCE8; margin-bottom: 30px; }

.pie { background: #0B1F37; color: #C6D2E1; padding: 64px 0 110px; font-size: 1rem; }
.pie-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 800px) { .pie-grid { grid-template-columns: 2fr 1fr 1fr; } .pie { padding-bottom: 40px; } }
.pie-lema { margin-top: 12px; max-width: 30ch; }
.pie-enlaces { list-style: none; display: grid; gap: 10px; }
.pie-enlaces a { text-decoration: none; }
.pie-enlaces a:hover { color: #fff; text-decoration: underline; }
.pie-legal { margin-top: 40px; font-size: .9rem; color: #8798AE; }

/* ---------- Botón fijo en celulares ---------- */
.barra-movil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96); box-shadow: 0 -8px 24px rgba(15, 39, 68, .12);
}
.barra-movil .boton { width: 100%; }
.barra-movil[hidden] { display: none; }
@media (min-width: 900px) { .barra-movil { display: none; } }

/* ---------- Páginas legales ---------- */
.legal-cabecera { background: var(--noche); }
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; margin-bottom: .3em; }
.legal .fecha { color: var(--gris); margin-bottom: 40px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #2B3B50; }
.legal p + p { margin-top: .9em; }
.legal ul { padding-left: 1.3em; display: grid; gap: 6px; margin-top: .6em; }

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