:root {
  --bg: #0c100d;
  --bg-soft: #131914;
  --panel: rgba(24, 32, 25, 0.94);
  --panel-2: rgba(32, 41, 33, 0.88);
  --line: rgba(219, 187, 111, 0.27);
  --gold: #dfbf78;
  --gold-soft: #b99a58;
  --jade: #86b59d;
  --text: #f0eadc;
  --muted: #aaa99d;
  --danger: #e59b83;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(110, 143, 112, .22), transparent 35rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 42px 42px, 42px 42px, auto;
  min-height: 100vh;
}

button, input, select { font: inherit; }
a { color: inherit; }

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 36px;
}

.hero, .result-hero { text-align: center; max-width: 790px; margin: 0 auto 38px; }
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .73rem;
  font-weight: 750;
  margin: 10px 0 12px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
  font-size: clamp(2.65rem, 8vw, 5.8rem);
  margin: 0;
  line-height: .96;
}
.hero-copy, .result-hero > p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
  margin: 22px auto 0;
  max-width: 700px;
}

.sun-mark {
  width: 78px;
  height: 78px;
  border: 1px solid var(--gold-soft);
  transform: rotate(45deg);
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  opacity: .9;
}
.sun-mark span { width: 35px; height: 35px; border: 1px solid var(--jade); border-radius: 50%; display: block; }

.form-card, .branch-card, .notice-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(36,46,37,.88), rgba(16,22,18,.96));
  box-shadow: var(--shadow);
  border-radius: 22px;
}
.form-card { max-width: 760px; margin: 0 auto; padding: clamp(22px, 5vw, 42px); }
.birth-form { display: grid; gap: 22px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 9px; }
.field > span { color: var(--gold); font-size: .83rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.field small { color: var(--muted); line-height: 1.45; }
input, select {
  width: 100%;
  color: var(--text);
  background: #0e1410;
  border: 1px solid rgba(223,191,120,.25);
  border-radius: 12px;
  padding: 14px 15px;
  outline: none;
}
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(223,191,120,.08); }
select option { background: #111712; }
.manual-zone { display: none; }
.manual-zone.visible { display: grid; }
.method-note {
  border-left: 2px solid var(--jade);
  padding: 13px 16px;
  background: rgba(134,181,157,.06);
  color: var(--muted);
  line-height: 1.6;
  font-size: .92rem;
}
.method-note strong { color: var(--jade); }
.primary-button {
  appearance: none;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 15px 24px;
  background: linear-gradient(90deg, #b99146, #e0c786);
  color: #15130d;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, filter .2s ease;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.alert { border: 1px solid rgba(229,155,131,.4); background: rgba(130,49,34,.2); color: #ffd7cc; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; line-height: 1.5; }
footer { max-width: 760px; margin: 24px auto 0; display: flex; justify-content: space-between; gap: 16px; color: #70756f; font-size: .8rem; }

.result-shell { width: min(1240px, calc(100% - 28px)); }
.result-nav { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); margin-bottom: 52px; font-size: .9rem; }
.back-link { color: var(--gold); text-decoration: none; }
.result-hero h1 { color: var(--text); font-size: clamp(2.6rem, 7vw, 5rem); }
.muted { color: var(--muted); }
.boundary-badge { display: inline-block; border: 1px solid rgba(223,191,120,.38); color: var(--gold); border-radius: 999px; padding: 9px 15px; margin-top: 20px; font-size: .86rem; }
.notice-card { max-width: 900px; margin: 18px auto; padding: 18px 20px; box-shadow: none; }
.notice-card strong { color: var(--gold); }
.notice-card p { color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.notice-card.compact { margin: 20px 0 0; background: rgba(70, 57, 28, .18); }
.branch-card { padding: clamp(18px, 4vw, 32px); margin: 28px 0; }
.branch-card > h2 { margin: 0 0 20px; color: var(--gold); font-family: Georgia, serif; font-weight: 500; }
.time-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.time-strip > div { border: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.17); border-radius: 12px; padding: 12px 13px; }
.time-strip span { display: block; color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.time-strip strong { font-size: .92rem; font-weight: 650; }
.readings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.readings-grid.single { grid-template-columns: 1fr; }
.reading-card { border: 1px solid rgba(223,191,120,.18); background: rgba(9,13,10,.55); border-radius: 18px; overflow: hidden; }
.reading-card.cierre { border-top-color: rgba(134,181,157,.6); }
.reading-card.inicio { border-top-color: rgba(223,191,120,.7); }
.reading-criterion { margin: 0; padding: 11px 18px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.05); text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; }
.reading-symbol { min-height: 164px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 28px 22px; text-align: center; background: radial-gradient(circle, rgba(134,181,157,.08), transparent 65%); }
.reading-symbol span { color: var(--gold); font-size: 2rem; font-family: Georgia, serif; }
.reading-symbol strong { font-family: Georgia, serif; font-size: clamp(1.55rem, 4vw, 2.65rem); font-weight: 500; }
.reading-symbol em { color: var(--jade); font-style: normal; font-size: 1.6rem; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; }
.data-grid section { padding: 20px; border-top: 1px solid rgba(255,255,255,.05); }
.data-grid section:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.05); }
.data-grid h3 { margin: 0 0 13px; color: var(--gold); font-family: Georgia, serif; font-weight: 500; font-size: 1.1rem; }
dl, dd { margin: 0; }
dl { display: grid; gap: 10px; }
dl > div { display: grid; grid-template-columns: minmax(92px, .7fr) 1.3fr; gap: 10px; font-size: .84rem; line-height: 1.35; }
dt { color: var(--muted); }
dd { color: var(--text); }
.bottom-actions { display: flex; justify-content: center; margin: 40px 0 20px; }
.link-button { text-decoration: none; min-width: 230px; }

@media (max-width: 800px) {
  .page-shell { padding-top: 38px; }
  .field-grid, .time-strip, .readings-grid, .data-grid { grid-template-columns: 1fr; }
  .data-grid section:nth-child(odd) { border-right: 0; }
  footer, .result-nav { flex-direction: column; }
  .reading-symbol { min-height: 132px; }
}

/* ===== V2 · Autocompletado geográfico ===== */
.location-field > label > span {
  color: var(--gold);
  font-size: .83rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.autocomplete-shell { position: relative; }
.city-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid rgba(223,191,120,.32);
  border-radius: 14px;
  background: #0d130f;
  box-shadow: 0 24px 60px rgba(0,0,0,.52);
  padding: 6px;
}
.city-option {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 12px 13px;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 4px;
}
.city-option:hover,
.city-option:focus { background: rgba(223,191,120,.10); outline: none; }
.city-option-name { font-weight: 680; }
.city-option-meta { color: var(--muted); font-size: .78rem; }
.suggestion-empty { color: var(--muted); padding: 13px; font-size: .88rem; line-height: 1.45; }
.detected-location {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(134,181,157,.18);
  border-radius: 13px;
  background: rgba(134,181,157,.055);
}
.detected-location > div { min-width: 0; }
.detected-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  margin-bottom: 5px;
}
.detected-location strong { color: var(--jade); font-size: .9rem; overflow-wrap: anywhere; }
.zone-override { border-top: 1px solid rgba(255,255,255,.06); padding-top: 18px; }
.switch-row { display: inline-flex; align-items: center; gap: 10px; color: var(--text); cursor: pointer; font-size: .9rem; }
.switch-row input { width: auto; accent-color: var(--gold); }
.zone-override .manual-zone { margin-top: 15px; }
.location-message { border-radius: 11px; padding: 10px 13px; font-size: .84rem; line-height: 1.45; }
.location-message.info { color: var(--muted); background: rgba(255,255,255,.035); }
.location-message.error { color: #ffd7cc; background: rgba(130,49,34,.2); border: 1px solid rgba(229,155,131,.28); }

@media (max-width: 800px) {
  .detected-location { grid-template-columns: 1fr; }
}


/* ===== Lectura Tonal · Portada y contenido SEO ===== */
.form-intro {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.form-intro .eyebrow { margin-top: 0; }
.form-intro h2,
.section-heading h2,
.steps-block h2,
.method-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0;
}
.form-intro h2 { font-size: clamp(1.75rem, 4vw, 2.45rem); }
.form-intro p:last-child {
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 0;
}

.seo-content {
  max-width: 960px;
  margin: 92px auto 0;
}
.section-heading {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-heading h2 { font-size: clamp(2.15rem, 6vw, 4rem); }
.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 20px auto 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.info-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(36,46,37,.62), rgba(16,22,18,.88));
}
.info-number {
  display: block;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .82rem;
  letter-spacing: .16em;
  margin-bottom: 34px;
}
.info-card h3 {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 500;
  margin: 0 0 12px;
}
.info-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.steps-block,
.method-section {
  margin-top: 22px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(12,16,13,.58);
}
.steps-block h2,
.method-section h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  counter-reset: steps;
  margin: 30px 0 24px;
  padding: 0;
}
.steps-list li {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-top: 1px solid rgba(223,191,120,.35);
  background: rgba(255,255,255,.018);
}
.steps-list strong { color: var(--gold); }
.steps-list span { color: var(--muted); line-height: 1.5; font-size: .9rem; }
.text-link {
  color: var(--jade);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.method-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(26px, 6vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 10% 50%, rgba(134,181,157,.09), transparent 42%),
    rgba(12,16,13,.58);
}
.method-section .eyebrow { margin-top: 0; }
.method-section > p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 800px) {
  .seo-content { margin-top: 64px; }
  .info-grid,
  .steps-list,
  .method-section { grid-template-columns: 1fr; }
  .info-card { min-height: auto; }
  .info-number { margin-bottom: 20px; }
}
