:root {
  --navy: #0f1e35; --navy-mid: #1a2f4a; --gold: #c9a84c; --gold-light: #e8c97a;
  --cream: #f7f3ee; --text: #2d3748; --text-light: #64748b; --white: #fff;
  --ok: #1f8a4c; --warn: #b7791f; --bad: #c0392b;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--cream); color: var(--text); line-height: 1.6; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); }

.hf-nav { background: var(--navy); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hf-nav a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; font-weight: 500; }
.hf-nav a:hover { color: var(--gold-light); }
.hf-logo { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 700; color: #fff !important; }
.hf-logo span { color: var(--gold); }

/* Menú completo con desplegable */
.hf-nav { position: relative; }
.hf-menu { list-style: none; display: flex; gap: 26px; align-items: center; }
.hf-menu li { position: relative; }
.hf-menu a.on { color: var(--gold-light); }
.hf-has > a::after { content: ' ▾'; font-size: 11px; }
.hf-has::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 26px; }
.hf-sub { display: none; position: absolute; top: calc(100% + 16px); left: -16px; min-width: 310px; background: #14263f; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 8px; list-style: none; box-shadow: 0 20px 40px rgba(0,0,0,.35); z-index: 50; }
.hf-has:hover .hf-sub, .hf-has:focus-within .hf-sub { display: block; }
.hf-sub a { display: block; padding: 10px 14px; border-radius: 8px; white-space: nowrap; }
.hf-sub a:hover { background: rgba(201,168,76,.15); }
.hf-nav a.hf-contact { background: var(--gold); color: var(--navy); padding: 9px 18px; border-radius: 6px; font-weight: 600; }
.hf-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; font-size: 20px; padding: 6px 12px; cursor: pointer; }
.hf-crumbs { background: var(--navy-mid); color: rgba(255,255,255,.55); font-size: 13px; padding: 10px 24px; }
.hf-crumbs a { color: var(--gold-light); text-decoration: none; }
.hf-back { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.hf-back .btn { margin-top: 0; }
@media (max-width: 900px) {
  .hf-toggle { display: block; }
  .hf-menu { display: none; }
  .hf-menu.open { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 16px 24px 22px; z-index: 60; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hf-sub { display: block; position: static; box-shadow: none; border: 0; background: transparent; padding: 4px 0 0 14px; min-width: 0; }
  .hf-has::after { display: none; }
  .hf-has > a::after { content: ''; }
  .hf-sub a { white-space: normal; padding: 8px 0; }
}

.hf-hero { background: var(--navy); padding: 48px 24px 64px; text-align: center; }
.hf-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.hf-hero h1 { color: #fff; font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin-bottom: 14px; }
.hf-hero p { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto; font-size: 16px; }

.hf-wrap { max-width: 760px; margin: -36px auto 0; padding: 0 16px 48px; position: relative; }
.hf-card { background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 12px 40px rgba(15,30,53,.1); margin-bottom: 20px; }
.hf-card h2 { font-size: 22px; margin-bottom: 6px; }
.hf-card .hint { font-size: 14px; color: var(--text-light); margin-bottom: 18px; }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { flex: 1; min-width: 140px; background: var(--cream); border: 2px solid transparent; border-radius: 10px; padding: 12px 16px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
.tab.on { background: var(--navy); color: var(--gold-light); }
.panel { display: none; } .panel.on { display: block; }

label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin: 16px 0 6px; }
input, select { width: 100%; padding: 14px 16px; border: 2px solid #e3dccf; border-radius: 10px; font: inherit; font-size: 17px; background: #fff; color: var(--text); }
input:focus, select:focus { outline: none; border-color: var(--gold); }
.small { font-size: 13px; color: var(--text-light); margin-top: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: var(--navy); font: inherit; font-weight: 700; font-size: 16px; padding: 15px 26px; border: 0; border-radius: 10px; cursor: pointer; text-decoration: none; margin-top: 22px; transition: all .2s; }
.btn:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn.wa { background: #25D366; color: #fff; }
.btn.wa:hover { background: #20bd59; }

.result { display: none; margin-top: 24px; border-radius: 14px; padding: 24px; background: var(--navy); color: #fff; }
.result.on { display: block; }
.result .big { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(34px, 8vw, 52px); font-weight: 900; color: var(--gold-light); line-height: 1.1; }
.result .lbl { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.result p { color: rgba(255,255,255,.8); margin-top: 10px; }
.result .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.result .row b { color: #fff; text-align: right; }
.result .row:last-child { border-bottom: 0; }
.bar { height: 12px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; margin: 14px 0 4px; }
.bar > i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .5s; }
.bar.warn > i { background: #f0b429; } .bar.bad > i { background: #e74c3c; }
.alert { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; background: rgba(240,180,41,.18); color: #ffe7a8; }
.alert.bad { background: rgba(231,76,60,.2); color: #ffd0cb; }
.alert.ok { background: rgba(46,204,113,.18); color: #c9f5da; }
.legal { font-size: 12.5px; color: var(--text-light); margin-top: 16px; }

.q { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; color: var(--navy); margin: 8px 0 14px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { background: var(--cream); border: 2px solid transparent; border-radius: 12px; padding: 16px; font: inherit; font-weight: 600; font-size: 16px; color: var(--navy); cursor: pointer; }
.opt:hover { border-color: var(--gold); }
.progress { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }

.hf-cta { background: var(--navy); border-radius: 18px; padding: 32px 24px; text-align: center; margin-top: 8px; }
.hf-cta h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.hf-cta p { color: rgba(255,255,255,.65); font-size: 15px; }
.hf-cta .btn { margin-top: 18px; }

.tool-list { display: grid; gap: 16px; }
.tool-link { display: block; text-decoration: none; background: #fff; border-radius: 16px; padding: 24px; border: 2px solid transparent; box-shadow: 0 8px 24px rgba(15,30,53,.07); transition: all .25s; }
.tool-link:hover { border-color: var(--gold); transform: translateY(-3px); }
.tool-link h2 { font-size: 20px; margin-bottom: 4px; }
.tool-link p { color: var(--text-light); font-size: 14px; }

.hf-foot { text-align: center; font-size: 13px; color: var(--text-light); padding: 24px 16px 40px; }
.hf-foot a { color: var(--navy); }

.cal-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.cal-item:last-child { border-bottom: 0; }
.cal-date { min-width: 74px; text-align: center; background: rgba(201,168,76,.18); border-radius: 10px; padding: 8px; color: var(--gold-light); font-weight: 700; line-height: 1.2; }
.cal-date small { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.cal-txt { font-size: 15px; color: #fff; }
.cal-txt span { display: block; font-size: 13px; color: rgba(255,255,255,.6); }

/* Formularios y texto legal */
.lead-form { background: var(--cream); border-radius: 14px; padding: 22px; margin-top: 20px; }
.lead-form h3 { font-size: 19px; margin-bottom: 4px; }
.lead-form .sub { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.lead-form .hp { display: none; }
.lead-form label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--text-light); margin-top: 14px; }
.lead-form label.check input { width: auto; margin-top: 4px; }
.lead-form label.check a { color: var(--navy); }
.lead-form textarea { width: 100%; padding: 14px 16px; border: 2px solid #e3dccf; border-radius: 10px; font: inherit; font-size: 16px; min-height: 90px; resize: vertical; }
.legal-text h2 { font-size: 19px; margin: 22px 0 6px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { font-size: 15px; margin-bottom: 8px; }
.legal-text a { color: var(--navy); }

@media (max-width: 520px) { .opts { grid-template-columns: 1fr; } .hf-card { padding: 22px 18px; } }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 90; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

@media (max-width: 520px) { .wa-float { width: 50px; height: 50px; right: 12px; bottom: 12px; } .wa-float svg { width: 26px; height: 26px; } body { padding-bottom: 70px; } }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Juego "próximamente" */
.hf-sub .proximamente { display: block; padding: 10px 14px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.45); font-size: 13px; cursor: default; }
.tool-link.proximo { border: 2px dashed var(--gold); box-shadow: none; }
.tool-link.proximo:hover { transform: none; }
.chip { display: inline-block; font-family: 'DM Sans', system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; background: var(--gold-light); color: var(--navy); padding: 4px 10px; border-radius: 99px; vertical-align: middle; margin-left: 6px; }
