/* Presta Lana – Casa de Empeño
   Paleta del logotipo: azul marino, blanco, dorado / ámbar */

:root {
  --navy: #1a3a8a;
  --navy-dark: #0f245c;
  --navy-deeper: #0a1a42;
  --navy-soft: #e8eef8;
  --gold: #f5a623;
  --gold-deep: #d4890a;
  --gold-coin: #e0b52d;
  --gold-soft: #fff4dc;
  --white: #ffffff;
  --paper: #f6f4ef;
  --ink: #161b2c;
  --muted: #5a6173;
  --line: #d8dde8;
  --danger: #b42318;
  --ok: #157347;
  --shadow: 0 10px 30px rgba(15, 36, 92, 0.08);
  --radius: 16px;
  --header-h: 4.5rem;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --container: 70rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--gold-deep); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--gold);
  color: var(--navy-deeper);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.container {
  width: min(100% - 1.5rem, var(--container));
  margin-inline: auto;
}

.container.narrow { width: min(100% - 1.5rem, 42rem); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: block;
  flex: 0 0 auto;
  max-width: 13.5rem;
}

.brand img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
}

.site-nav.is-open { display: flex; }

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 0.55rem 0.4rem;
}

.site-nav a:hover { color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0.7rem 1.2rem;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-deeper);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--gold);
}

.btn-map {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  width: 100%;
  margin-top: auto;
}

.btn-map:hover {
  background: var(--navy-dark);
  color: var(--gold);
  border-color: var(--navy-dark);
}

.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-text {
  background: none;
  border: none;
  color: var(--navy);
  font-weight: 600;
  padding: 0.6rem 0;
  margin-top: 0.75rem;
}
.btn-text:hover { color: var(--gold-deep); text-decoration: underline; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 420px at 80% -10%, rgba(245, 166, 35, 0.16), transparent 55%),
    linear-gradient(165deg, var(--navy-deeper) 0%, var(--navy) 55%, #16357a 100%);
  color: var(--white);
  padding: 3.25rem 0 3.75rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(224, 181, 45, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 40rem; }

.eyebrow {
  display: inline-block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.7rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 6vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--paper); }

.section-head { margin-bottom: 1.75rem; max-width: 38rem; }
.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  letter-spacing: -0.02em;
  color: var(--navy-dark);
}
.section-head p { margin: 0; color: var(--muted); }
.section-head-sub { margin-top: 3rem; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step-card,
.accept-card,
.branch-card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-card { padding: 1.25rem 1.2rem 1.4rem; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.step-card h3,
.accept-card h3,
.branch-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy-dark);
}

.step-card p,
.accept-card p { margin: 0; color: var(--muted); }

.accept-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.accept-card { padding: 1.3rem 1.2rem; }

.accept-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}

.accept-icon svg { width: 100%; height: 100%; }

/* Branches */
.branch-grid {
  display: grid;
  gap: 1rem;
}

.branch-card {
  padding: 1.25rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.branch-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--gold);
}

.branch-card h3 { margin: 0; }

.branch-city {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.branch-meta {
  display: flex;
  gap: 0.55rem;
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.branch-meta .icon {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--navy);
  margin-top: 0.15rem;
}

.branch-meta .icon svg { width: 100%; height: 100%; }
.branch-meta a { font-weight: 600; text-decoration: none; }
.branch-meta a:hover { text-decoration: underline; }

/* Cotizador */
.wizard-steps {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0 0 1.25rem;
}

.wizard-steps li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  flex: 1;
}

.wizard-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-size: 0.85rem;
}

.wizard-steps li.is-active { color: var(--navy-dark); }
.wizard-steps li.is-active span,
.wizard-steps li.is-done span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deeper);
}

.wizard-steps li.is-done { color: var(--ok); }

.panel { padding: 1.25rem 1.1rem 1.4rem; }

.form-grid {
  display: grid;
  gap: 0.95rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field[hidden] { display: none !important; }
.field label,
.field legend {
  font-weight: 600;
  font-size: 0.92rem;
}

.field abbr { color: var(--gold-deep); text-decoration: none; }
.optional { font-weight: 500; color: var(--muted); font-size: 0.85rem; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 58, 138, 0.15);
  outline: none;
}

.field input.invalid,
.field select.invalid { border-color: var(--danger); }

.check-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}

.check-field input { margin-top: 0.3rem; accent-color: var(--navy); width: 1.1rem; height: 1.1rem; }

.hint { margin: 0; color: var(--muted); font-size: 0.85rem; }

.form-error {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0.85rem 0 0;
}

.lead-ok {
  background: #e8f6ee;
  color: var(--ok);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin: 0 0 1.1rem;
  font-weight: 600;
}

.price-toggle {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem 0.85rem;
  margin: 0;
}

.price-toggle legend { padding: 0 0.3rem; }
.price-toggle label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-top: 0.4rem;
}

.quote-fields { margin-top: 1rem; }

.quote-result {
  margin-top: 1.35rem;
  padding: 1.2rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
}

.quote-kicker {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.quote-hasta-wrap {
  margin: 0.1rem 0 0.85rem;
}

.quote-hasta {
  margin: 0 0 0.2rem;
  font-size: clamp(1.85rem, 8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--gold);
  text-transform: uppercase;
}

.quote-amount {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.quote-appraisal {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

.quote-detail { margin: 0 0 0.75rem; color: rgba(255,255,255,0.86); font-size: 0.95rem; }

.quote-disclaimer-articulo {
  margin: 0 0 0.7rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 244, 220, 0.16);
  border: 1px solid rgba(245, 166, 35, 0.5);
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #fff;
  text-align: left;
}

.quote-disclaimer {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.86);
  line-height: 1.5;
  text-align: left;
}

/* Privacy + footer */
.prose p { color: var(--muted); margin: 0 0 0.9rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

.site-footer {
  background: var(--navy-deeper);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.4rem 0 2rem;
  text-align: center;
}

.footer-inner { display: grid; gap: 0.55rem; justify-items: center; }

.brand-footer { max-width: 16rem; }
.brand-footer img { margin-inline: auto; }

.site-footer p { margin: 0; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--gold); }
.copyright { margin-top: 0.6rem !important; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 66, 0.62);
}

.modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem 1.3rem;
  max-width: 28rem;
  width: 100%;
  max-height: min(85vh, 36rem);
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem 0.45rem;
}

.modal-dialog h2 {
  margin: 0 0 0.8rem;
  color: var(--navy-dark);
  padding-right: 1.5rem;
}

/* Desktop */
@media (min-width: 720px) {
  .container { width: min(100% - 2.5rem, var(--container)); }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem 1rem;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .site-nav a { padding: 0.3rem 0; }
  .brand { max-width: 16.5rem; }
  .hero { padding: 5.25rem 0 5.75rem; }
  .section { padding: 4.5rem 0; }
  .steps,
  .accept-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
  .branch-grid { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .panel { padding: 1.6rem 1.5rem 1.7rem; }
}

@media (min-width: 1080px) {
  .branch-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { max-width: 44rem; }
}

.hero-visual { display: none; }
.hero-visual img {
  width: min(70%, 19rem);
  margin-inline: auto;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.35));
}

@media (min-width: 900px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2rem;
    width: min(100% - 2.5rem, var(--container));
  }
  .hero-inner { max-width: none; }
  .hero-visual { display: block; }
}


/* Campo trampa antispam: no debe verse ni llenarse */
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Conversational wizard */
.wizard { margin-top: 0.25rem; }

.wizard-progress-wrap { margin: 0 0 1rem; }
.wizard-progress-label {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.wizard-progress {
  height: 0.45rem;
  background: var(--navy-soft);
  border-radius: 999px;
  overflow: hidden;
}
.wizard-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-coin));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.chat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.05rem 1.25rem;
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.7rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.wizard-back[hidden] { display: none !important; }
.wizard-back:hover { color: var(--gold-deep); text-decoration: underline; }

.chat-bubble {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.9rem;
  background: var(--navy-soft);
  color: var(--navy-dark);
  border-radius: 16px 16px 16px 4px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.wizard-question {
  margin: 0 0 1rem;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
}

.wizard-body { display: grid; gap: 0.85rem; }

.choice-grid {
  display: grid;
  gap: 0.55rem;
}

.choice-btn,
.skip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.choice-btn:hover,
.skip-btn:hover {
  border-color: var(--navy);
  color: var(--navy-dark);
}
.choice-btn.is-selected {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}
.skip-btn {
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border-style: dashed;
}

.choice-grid-2 { grid-template-columns: 1fr; }

@media (min-width: 520px) {
  .choice-grid-2 { grid-template-columns: 1fr 1fr; }
  .choice-grid-3 { grid-template-columns: 1fr 1fr; }
}

.wizard-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.wizard .field { margin: 0; }

.wizard .quote-result { text-align: center; }
.wizard .quote-result .quote-disclaimer-articulo,
.wizard .quote-result .quote-disclaimer { text-align: left; }

.quote-compare {
  margin: 0 0 0.8rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.45;
}

.result-cta {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0.35rem;
}
.result-cta .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.result-branch {
  margin: 0.35rem 0 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
}

.restart-btn { margin-top: 0.35rem; }
