:root { --brand: #97652d; --brand-dark: #5c3c1d; }
html { scroll-behavior: smooth; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: linear-gradient(135deg, #b07a3b, #5c3c1d); color: #fff; font-size: 15px; }
.nav-link { color: #5c3c1d; } .nav-link:hover { color: #b07a3b; }
#nav-links.mobile-open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 1rem; gap: 1rem; border-bottom: 1px solid #f4ead9; }

.btn-primary { display: inline-flex; align-items: center; background: linear-gradient(135deg, #b07a3b, #7a5025); color: #fff; font-weight: 600; padding: .8rem 1.4rem; border-radius: 999px; box-shadow: 0 6px 18px -6px rgba(122,80,37,.55); transition: transform .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(122,80,37,.65); }
.btn-primary:disabled { opacity: .6; transform: none; }
.btn-secondary { display: inline-flex; align-items: center; background: #fff; color: #5c3c1d; border: 1.5px solid #e8d3b0; font-weight: 600; padding: .8rem 1.4rem; border-radius: 999px; }
.btn-secondary:hover { border-color: #b07a3b; }
.btn-ghost { display: inline-flex; align-items: center; background: #fff; color: #5c3c1d; border: 1px solid #e8d3b0; font-weight: 500; font-size: .9rem; padding: .55rem 1rem; border-radius: 10px; }
.btn-ghost:hover:not(:disabled) { background: #fbf7f1; }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #7a5025; }
.icon-btn:hover { background: #f4ead9; }
.link { color: #7a5025; text-decoration: underline; text-underline-offset: 2px; text-align: left; }

.input { width: 100%; border: 1.5px solid #e8d3b0; background: #fff; border-radius: 12px; padding: .7rem .9rem; outline: none; transition: border .15s, box-shadow .15s; }
.input:focus { border-color: #b07a3b; box-shadow: 0 0 0 4px rgba(176,122,59,.15); }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 500; color: #5c3c1d; }
.field small { font-weight: 400; }

.card { background: #fff; border: 1px solid #f4ead9; border-radius: 20px; padding: 1.75rem; box-shadow: 0 10px 30px -18px rgba(92,60,29,.35); }
.eyebrow { color: #b07a3b; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; }
.section-title { font-family: Lora, serif; font-size: 2rem; font-weight: 700; color: #3d2813; text-align: center; }
.section-sub { color: #57534e; max-width: 48rem; margin: .75rem auto 2rem; text-align: center; }
.h2 { font-family: Lora, serif; font-size: 1.6rem; font-weight: 700; color: #3d2813; margin: 2.2rem 0 1rem; display: flex; align-items: center; gap: .6rem; }
.h2 i { color: #b07a3b; font-size: 1.2rem; }
.h3 { font-weight: 700; color: #5c3c1d; margin: 1.5rem 0 .75rem; font-size: 1.1rem; }

.hero { background: radial-gradient(1200px 500px at 85% 10%, #f4ead9 0, transparent 60%), linear-gradient(180deg, #fff 0, #fbf7f1 100%); }
.hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }

.brief-card { display: block; border-radius: 18px; padding: 1.25rem; background: linear-gradient(180deg, var(--ts) 0, #fff 70%); border: 1px solid color-mix(in srgb, var(--tc) 22%, transparent); }
.brief-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tc); color: #fff; font-size: 1.2rem; }
.brief-pct { font-weight: 800; font-size: 1.4rem; color: var(--tc); }
.hover-lift { transition: transform .15s, box-shadow .15s; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(92,60,29,.5); }
.chip { display: inline-block; font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; background: #f4ead9; color: #5c3c1d; }
.chip-weak { background: #fff1e6; color: #9a3412; }
.temp-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--ts); color: var(--tc); font-weight: 600; padding: .35rem .8rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent); font-size: .9rem; }
.temp-badge.sm { font-size: .72rem; padding: .15rem .55rem; gap: .3rem; }

.step-card { position: relative; background: #fbf7f1; border-radius: 18px; padding: 1.5rem; }
.step-num { position: absolute; top: 1rem; right: 1rem; font-family: Lora, serif; font-size: 2rem; font-weight: 700; color: #e8d3b0; }
.check-list li { position: relative; padding-left: 1.8rem; margin: .5rem 0; }
.check-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: #15803d; }

.verse { background: #fff; border-left: 4px solid #b07a3b; border-radius: 14px; padding: 1.2rem 1.4rem; box-shadow: 0 6px 20px -14px rgba(92,60,29,.4); }
.verse p { font-family: Lora, serif; font-style: italic; font-size: 1.1rem; color: #3d2813; line-height: 1.6; }
.verse cite { display: block; margin-top: .6rem; font-style: normal; font-weight: 600; color: #97652d; font-size: .9rem; }
.verse cite span { font-weight: 400; color: #a8a29e; font-size: .75rem; margin-left: .3rem; }
.verse-compact { padding: .8rem 1rem; box-shadow: none; background: #fbf7f1; }
.verse-compact p { font-size: .95rem; }
.verse-ref { color: #7a5025; border-bottom: 1px dotted #b07a3b; cursor: help; }

.disclaimer { display: flex; gap: .8rem; background: #fff8eb; border: 1px solid #f4dcae; border-radius: 14px; padding: 1rem 1.2rem; font-size: .9rem; color: #78350f; }
.disclaimer i { margin-top: .2rem; }

/* Mapa de ejes */
.axes-map { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; border: 1px solid #f4ead9; background: #fff; }
.axes-map .q { display: flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; color: var(--tc); background: color-mix(in srgb, var(--tc) 9%, #fff); font-family: Lora, serif; font-size: 1.05rem; }
.axes-map::before, .axes-map::after { content: ''; position: absolute; background: #e8d3b0; }
.axes-map::before { left: 50%; top: 0; bottom: 0; width: 1.5px; }
.axes-map::after { top: 50%; left: 0; right: 0; height: 1.5px; }
.axis-label { position: absolute; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: #a8a29e; background: #fff; padding: 0 .3rem; z-index: 1; }
.ax-top { top: 6px; left: 50%; transform: translateX(-50%); }
.ax-bottom { bottom: 6px; left: 50%; transform: translateX(-50%); }
.ax-left { left: -22px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left; left: 14px; }
.ax-right { right: 14px; top: 50%; transform: rotate(90deg) translateX(-50%); transform-origin: right; }
.map-dot { position: absolute; z-index: 2; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #5c3c1d; color: #fff; display: grid; place-items: center; font-weight: 700; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.map-dot-2 { background: #e11d48; }

/* Test */
.stepper { display: flex; gap: .5rem; justify-content: center; font-size: .85rem; color: #a8a29e; }
.stepper li { display: flex; align-items: center; gap: .4rem; }
.stepper li + li::before { content: ''; width: 28px; height: 2px; background: #e8d3b0; margin-right: .3rem; }
.stepper span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f4ead9; font-weight: 600; font-size: .8rem; }
.stepper .active { color: #5c3c1d; font-weight: 600; } .stepper .active span { background: #97652d; color: #fff; }
.stepper .done span { background: #15803d; color: #fff; }
.progress { height: 8px; background: #f4ead9; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #b07a3b, #7a5025); transition: width .3s; }
.pill { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
.pill-strong { background: #e1f5e6; color: #15803d; } .pill-weak { background: #fff1e6; color: #c2410c; }
.option { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; padding: 1rem 1.2rem; border: 2px solid #f4ead9; border-radius: 14px; background: #fff; font-size: 1.05rem; transition: all .15s; }
.option:hover { border-color: #e8d3b0; background: #fbf7f1; }
.option-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #e8d3b0; flex-shrink: 0; transition: all .15s; }
.option.selected { border-color: #97652d; background: #fbf7f1; }
.option.selected .option-dot { border-color: #97652d; background: #97652d; box-shadow: inset 0 0 0 4px #fff; }

/* Reporte */
.report p { line-height: 1.7; }
.report-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; margin-top: 1rem; padding: 2rem; border-radius: 24px; background: linear-gradient(135deg, var(--ts), #fff 75%); border: 1px solid color-mix(in srgb, var(--tc) 22%, transparent); }
.pair-code-box { background: #fff; border: 2px dashed #e8d3b0; border-radius: 16px; padding: 1rem 1.4rem; text-align: center; max-width: 240px; }
.pair-code-box span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #a8a29e; }
.pair-code-box strong { display: block; font-family: ui-monospace, monospace; font-size: 1.8rem; letter-spacing: .2em; color: #5c3c1d; }
.pair-code-box small { color: #78716c; font-size: .72rem; }
.report-section { margin-top: 1rem; }
.score-tile { text-align: center; border-radius: 14px; padding: .9rem; background: var(--ts); color: var(--tc); display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.score-tile strong { font-size: 1.6rem; } .score-tile span { font-weight: 600; font-size: .85rem; } .score-tile small { color: #78716c; font-size: .72rem; }
.info-box { border-radius: 16px; padding: 1.1rem 1.25rem; }
.info-box h4 { font-weight: 700; margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.info-box ul { list-style: disc; padding-left: 1.2rem; } .info-box li { margin: .2rem 0; }
.ib-green { background: #ecfdf3; } .ib-green h4 { color: #15803d; }
.ib-amber { background: #fff7ed; } .ib-amber h4 { color: #c2410c; }
.ib-blue { background: #eff6ff; } .ib-blue h4 { color: #1d4ed8; }
.ib-rose { background: #fff1f2; } .ib-rose h4 { color: #be123c; }
.area-card { background: #fff; border: 1px solid #f4ead9; border-radius: 16px; padding: 1.1rem 1.25rem; }
.area-card h4 { font-weight: 700; color: #5c3c1d; margin-bottom: .5rem; display: flex; gap: .5rem; align-items: center; }
.area-card .plus, .area-card .minus { display: flex; gap: .5rem; font-size: .92rem; margin-top: .35rem; }
.area-card .plus i { color: #15803d; margin-top: .3rem; } .area-card .minus i { color: #c2410c; margin-top: .3rem; }
.mini-stat { background: #fff; border: 1px solid #f4ead9; border-radius: 14px; padding: .9rem 1rem; }
.mini-stat span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #a8a29e; margin-bottom: .2rem; }
.mini-stat strong { color: #3d2813; }
.mini-list { border-top: 4px solid var(--tc); background: #fff; border-radius: 12px; padding: .8rem 1rem; box-shadow: 0 4px 14px -10px rgba(0,0,0,.3); }
.mini-list h4 { color: var(--tc); font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.mini-list li { font-size: .88rem; padding: .15rem 0; }
.temp-hero { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border-radius: 20px; background: linear-gradient(135deg, var(--ts), #fff); }
.character-card { display: flex; gap: 1.2rem; background: linear-gradient(135deg, #fbf7f1, #fff); border: 1px solid #f4ead9; border-radius: 20px; padding: 1.5rem; }
.character-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: #5c3c1d; color: #f4ead9; display: grid; place-items: center; font-size: 1.4rem; }
.growth-card { background: #fff; border: 1px solid #f4ead9; border-radius: 18px; padding: 1.3rem; margin-bottom: 1rem; }
.growth-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.growth-head h3 { font-family: Lora, serif; font-weight: 700; font-size: 1.15rem; color: #c2410c; }
.practice { display: flex; gap: .6rem; margin-top: .8rem; background: #f0fdf4; border-radius: 12px; padding: .75rem 1rem; font-size: .92rem; }
.practice i { color: #15803d; margin-top: .3rem; }
.compat-row { background: #fff; border: 1px solid #f4ead9; border-radius: 14px; padding: .9rem 1rem; }
.plan li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #f4ead9; }
.plan-day { flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; background: #5c3c1d; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.plan h4 { font-weight: 700; color: #3d2813; } .plan p { margin: .2rem 0 .6rem; }
.banner-couple { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; border-radius: 14px; padding: .8rem 1.2rem; margin-top: 1rem; }
.couple-hero { text-align: center; padding: 2rem 1rem; margin-top: 1rem; border-radius: 24px; background: linear-gradient(135deg, #fff1f2, #fbf7f1); }
.couple-names { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.couple-heart { width: 56px; height: 56px; border-radius: 50%; background: #e11d48; color: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 8px 20px -8px #e11d48; }
.love-card { border-radius: 18px; padding: 1.4rem; background: linear-gradient(180deg, var(--ts), #fff 60%); border: 1px solid color-mix(in srgb, var(--tc) 25%, transparent); font-size: .94rem; }
.love-card h3 { color: var(--tc); }
.alert-card { display: flex; gap: 1rem; background: #fff; border: 1px solid #fde4c8; border-radius: 18px; padding: 1.2rem; }
.alert-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: #fff7ed; color: #c2410c; display: grid; place-items: center; font-size: 1.2rem; }
.alert-card h4 { font-weight: 700; color: #9a3412; font-size: 1.1rem; }
.questions { counter-reset: q; } .questions li { counter-increment: q; position: relative; padding: .8rem 0 .8rem 2.8rem; border-bottom: 1px solid #f4ead9; }
.questions li::before { content: counter(q); position: absolute; left: 0; top: .7rem; width: 30px; height: 30px; border-radius: 50%; background: #f4ead9; color: #5c3c1d; display: grid; place-items: center; font-weight: 700; }
.combo-card { display: block; background: #fff; border: 1px solid #f4ead9; border-radius: 16px; padding: 1.1rem; }
.matrix { border-collapse: separate; border-spacing: 6px; margin: 0 auto; }
.matrix th { padding: .3rem; }
.matrix-cell { width: 130px; padding: .6rem; border-radius: 12px; background: #fff; border: 2px solid #f4ead9; transition: all .15s; }
.matrix-cell:hover { border-color: #e8d3b0; } .matrix-cell.active { border-color: #e11d48; background: #fff1f2; }

/* Admin */
.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 1px solid #e8d3b0; }
.admin-tabs button { padding: .7rem 1rem; font-weight: 500; color: #78716c; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.admin-tabs button.active { color: #5c3c1d; border-color: #97652d; }
.admin-table { width: 100%; font-size: .9rem; }
.admin-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #a8a29e; padding: .8rem; background: #fbf7f1; }
.admin-table td { padding: .7rem .8rem; border-top: 1px solid #f4ead9; vertical-align: top; }
.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; display: flex; justify-content: flex-end; }
.drawer.hidden { display: none; }
.drawer-panel { width: min(560px, 100%); height: 100%; overflow-y: auto; background: #fff; padding: 1.5rem; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; max-width: 90vw; background: #3d2813; color: #fff; padding: .8rem 1.2rem; border-radius: 12px; z-index: 60; transition: all .3s; font-size: .9rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast-err { background: #b91c1c; }

@media (max-width: 640px) {
  .character-card, .alert-card { flex-direction: column; }
  .section-title { font-size: 1.6rem; }
  .axes-map .q { font-size: .8rem; }
}

@media print {
  .no-print, #site-header, #site-footer { display: none !important; }
  body { background: #fff; }
  .report { padding: 0 !important; max-width: 100% !important; }
  .page-break { break-before: page; }
  .verse, .card, .growth-card, .area-card, .info-box, .alert-card, .love-card { break-inside: avoid; box-shadow: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
[id] { scroll-margin-top: 80px; }
