:root {
  --bg: #ffffff;
  --soft: #f5f3f1;
  --text: #1b1d22;
  --muted: #5d6470;
  --border: #e6e2dd;
  --brand: #8a1538;
  --brand-dark: #3b0a1d;
  --accent: #d6213f;
  --wa: #128c4a;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 2.5rem 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.2rem;
  border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--small { min-height: 40px; padding: .4rem 1rem; font-size: .95rem; }
.btn--block { width: 100%; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: grid; min-width: 0; }
.brand span { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, var(--accent)); color: #fff; padding: 3rem 0 3.2rem; }
.hero__kicker { display: inline-block; margin: 0 0 1rem; padding: .25rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .15); font-size: .9rem; }
.hero__sub { max-width: 640px; font-size: 1.1rem; opacity: .92; }
.hero__bono { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 1.25rem; }
.card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.card__foto { position: relative; aspect-ratio: 16 / 10; background: var(--soft); display: grid; place-items: center; }
.card__foto img { width: 100%; height: 100%; object-fit: cover; }
.card__foto span { display: none; }
.card__foto--sin { background: linear-gradient(135deg, #2a2d34, #4a4f59); }
.card__foto--sin span { display: block; color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: .02em; }
.card__body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__body .btn { margin-top: auto; }
.card__tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.card__tags span:empty { display: none; }
.card__tags span { font-size: .78rem; padding: .1rem .55rem; border-radius: 999px; background: var(--soft); color: var(--muted); }
.card__precio { margin: 0; }
.card__precio strong { font-size: 1.35rem; }
.card__bono { margin: 0; color: var(--accent); font-weight: 600; }
.card__bono--tasa { color: var(--brand); font-weight: 500; font-size: .9rem; }
.card__ficha { margin: .25rem 0 .75rem; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }

.todos { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); padding: .25rem 1rem; }
.todos summary { cursor: pointer; font-weight: 600; padding: .75rem 0; }
.tabla { margin: .5rem 0 1.25rem; }
.tabla__scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 560px; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }

.ayuda { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ayuda article { background: var(--soft); border-radius: var(--radius); padding: 1.1rem; }
.ayuda p { margin: 0; color: var(--muted); }

.cotiza { background: var(--soft); }
.form { max-width: 640px; }
.pregunta { border: none; margin: 1.25rem 0; padding: 0; }
.pregunta legend { font-weight: 600; margin-bottom: .5rem; }
.pregunta--falta legend { color: var(--accent); }
.opciones { display: flex; flex-wrap: wrap; gap: .5rem; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion span { display: inline-block; padding: .55rem .95rem; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; cursor: pointer; }
.opcion input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.opcion input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: .3rem; margin: 1rem 0; }
.field span { font-weight: 600; }
.field input { min-height: 48px; padding: .6rem .8rem; border: 1.5px solid var(--border); border-radius: 12px; font: inherit; background: #fff; }
.trap { position: absolute; left: -9999px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; font-size: .92rem; }
.consent input { margin-top: .25rem; width: 20px; height: 20px; flex: none; }
.error { color: #b3261e; font-weight: 600; }
.gracias { max-width: 640px; background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }

.foot { padding-top: 2rem; padding-bottom: 5rem; color: var(--muted); font-size: .85rem; }
.foot ul { padding-left: 1.1rem; }

.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; background: var(--wa); color: #fff; text-decoration: none;
  font-weight: 700; padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.yo { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 720px) { .yo { grid-template-columns: 300px 1fr; } }
.yo__foto { width: 100%; max-width: 320px; height: auto; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); justify-self: center; }
.redes { display: flex; flex-wrap: wrap; gap: .5rem; }
.red { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none; }
.red--facebook { background: #1877f2; }
.red--instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.red--tiktok { background: #111; }
.redes--pie { margin: 1rem 0; }
.redes--pie .red { min-height: 36px; padding: .3rem .9rem; font-size: .85rem; }

.btn--outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.agenda__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.gracias__agenda { margin-top: .75rem; }

.logo { height: 40px; width: auto; flex: none; }
.top__in { justify-content: flex-start; }
.top__in .btn { margin-left: auto; }

.wizard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.wizard__progreso { display: grid; gap: .4rem; margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.wizard__barra { height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.wizard__barra div { height: 100%; background: var(--accent); transition: width .25s ease; }
.wizard__titulo { font-size: 1.25rem; outline: none; }
.wizard__opciones { display: grid; gap: .6rem; margin-top: 1rem; }
.wizard__opcion {
  min-height: 52px; padding: .75rem 1rem; text-align: left; font: inherit; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--text);
}
.wizard__opcion:hover { border-color: var(--brand); }
.wizard__opcion.is-sel { border-color: var(--brand); background: var(--brand); color: #fff; }
.wizard__atras { margin-top: 1rem; background: none; border: none; color: var(--muted); font: inherit; cursor: pointer; padding: .5rem 0; min-height: 44px; }

/* Fotos de estudio con fondo transparente: se muestran completas sobre blanco. */
.card__foto { background: #fff; }
.card__foto img { object-fit: contain; padding: .5rem; }
.tabla__modelo { display: flex; align-items: center; gap: .6rem; }
.tabla__modelo img { width: 72px; height: 44px; object-fit: contain; }
