/* =========================================================
   TOUREVO — /cotizador/ & /pago/ page styles
   Reuses design tokens from styles.css
   ========================================================= */

.page-plain {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-plain main { flex: 1 0 auto; }

.page-hero {
  padding: clamp(7rem, 14vh, 10rem) 0 clamp(2.5rem, 6vh, 4rem);
}
.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
  margin: .8rem 0 .6rem;
}
.page-title em {
  font-style: italic;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 56ch;
  line-height: 1.6;
}

.primary-nav .active { color: var(--gold-soft); }

.card-surface {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

/* =============================
   COTIZADOR
   ============================= */

.wizard-section {
  padding: 0 0 6rem;
}
.wizard-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
}
@media (max-width: 900px) {
  .wizard-section .container { grid-template-columns: 1fr; }
}

.wiz-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  padding: 0;
  margin: 0 0 1.5rem;
  grid-column: 1 / -1;
}
.wiz-steps li {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  cursor: pointer;
  transition: all .25s ease;
}
.wiz-steps li span {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font-weight: 700;
  font-size: .85rem;
}
.wiz-steps li.done {
  color: rgba(255,255,255,.85);
  border-color: rgba(52,211,153,.4);
}
.wiz-steps li.done span { background: var(--emerald); color: #fff; }
.wiz-steps li.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(251,191,36,.18), rgba(249,115,22,.18));
  border-color: rgba(251,191,36,.5);
}
.wiz-steps li.active span {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #0a1628;
}
@media (max-width: 720px) {
  .wiz-steps { grid-template-columns: repeat(5, 1fr); font-size: .7rem; }
  .wiz-steps li { padding: .5rem .4rem; justify-content: center; }
  .wiz-steps li b { display: none; }
}

.wiz-shell {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.wiz-panel {
  border: 0;
  padding: 0;
  margin: 0;
  display: none;
}
.wiz-panel.active { display: block; }

.wiz-panel-title {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 .35rem;
}
.wiz-panel-sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.wiz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .wiz-grid { grid-template-columns: 1fr; }
}

.wiz-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .92rem;
  color: var(--ink-soft);
}
.wiz-field > span {
  font-weight: 600;
  color: var(--ink);
}
.wiz-field > span em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}
.wiz-field input,
.wiz-field select,
.wiz-field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .75rem .85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wiz-field input:focus,
.wiz-field select:focus,
.wiz-field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(251,191,36,.2);
}

.stepper {
  display: inline-grid;
  /* 44px min tap target per WCAG 2.5.5; desktop stays at 2.75rem */
  grid-template-columns: 2.75rem 4rem 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.stepper button {
  background: #f6f4ef;
  border: 0;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  min-height: 44px;
  touch-action: manipulation;
  transition: background .15s ease;
}
.stepper button:hover { background: #ece7da; }
.stepper button:active { background: #dfd9c8; }
.stepper button:focus-visible {
  outline: 2px solid var(--emerald-deep, #10b981);
  outline-offset: -2px;
}
.stepper input {
  border: 0;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  width: 100%;
  padding: .55rem 0;
  min-height: 44px;
}
@media (max-width: 640px) {
  .stepper { grid-template-columns: 3rem 4.5rem 3rem; }
}

.wiz-checks,
.wiz-radios {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .5rem .8rem;
}
.wiz-checks legend,
.wiz-radios legend {
  font-weight: 700;
  padding: 0 .4rem;
  font-size: .95rem;
  grid-column: 1 / -1;
  margin-bottom: .3rem;
}
.wiz-checks label,
.wiz-radios label {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
  font-size: .92rem;
}
.wiz-checks label:hover,
.wiz-radios label:hover { background: #f7f4ec; }
.wiz-checks input:checked + span,
.wiz-radios input:checked + span { color: var(--emerald-deep); font-weight: 600; }
.wiz-checks label:has(input:checked),
.wiz-radios label:has(input:checked) {
  background: rgba(16,185,129,.06);
  border-color: rgba(16,185,129,.35);
}
.wiz-radios span { display: flex; flex-direction: column; }
.wiz-radios span small { color: var(--muted); font-size: .8rem; }

.wiz-tours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.wiz-tour-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  cursor: pointer;
  transition: all .2s ease;
  background: #fff;
}
.wiz-tour-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.wiz-tour-card:has(input:checked) {
  border-color: var(--emerald);
  background: rgba(16,185,129,.04);
  box-shadow: 0 0 0 2px rgba(16,185,129,.15);
}
.wiz-tour-card input { margin-top: .2rem; }
.wiz-tour-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .3rem;
}
.wiz-tour-head strong {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.05rem;
}
.wiz-tour-dur {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
}
.wiz-tour-body p {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 .5rem;
  line-height: 1.45;
}
.wiz-tour-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.wiz-tour-price { font-weight: 700; color: var(--ink); }
.wiz-tour-price em { font-weight: 400; color: var(--muted); font-style: normal; }
.wiz-tour-cat {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--plum);
  background: rgba(124,58,237,.08);
  padding: .15rem .55rem;
  border-radius: 999px;
}

.wiz-custom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: #faf8f3;
}
.wiz-custom strong { font-size: 1rem; }
.wiz-custom p { color: var(--muted); font-size: .88rem; margin: .3rem 0 .5rem; }
.wiz-custom textarea {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
}
.wiz-custom-price {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .85rem;
}
.wiz-custom-price input {
  max-width: 160px;
  padding: .5rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.chip-amedida {
  display: inline-block;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  color: #0a1628;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  margin-left: .4rem;
}

.wiz-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: .5rem;
}
.wiz-subtotal strong {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold-soft);
}
.wiz-disclaimer {
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 1rem;
}

.wiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.wiz-nav .btn-secondary,
.wiz-nav .btn-primary {
  flex: 0 0 auto;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  font: inherit;
  font-size: .95rem;
}
.btn-primary {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  color: #0a1628;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: #f1ede4;
  color: var(--ink);
}
.btn-secondary:hover { background: #e6e0d3; }

.wiz-summary {
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.wiz-summary h3 {
  margin: 0 0 .6rem;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.15rem;
}
.wiz-summary h3 + h3 { margin-top: 1rem; }
.wiz-sum-tours {
  list-style: none;
  padding: 0;
  margin: 0 0 .8rem;
}
.wiz-sum-tours li {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--line);
  gap: 1rem;
}
.wiz-sum-tours li:last-child { border-bottom: 0; }
.wiz-sum-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .5rem 1.5rem;
  margin: 0;
}
.wiz-sum-dl > div {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  border-bottom: 1px dashed var(--line);
  gap: 1rem;
}
.wiz-sum-dl dt { color: var(--muted); font-size: .85rem; }
.wiz-sum-dl dd { margin: 0; font-weight: 600; text-align: right; font-size: .9rem; }

.wiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1rem;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #25D366;
  color: #fff !important;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
}
.btn-wa:hover { filter: brightness(1.05); }
.btn-wa-inline {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: .55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  margin-top: .4rem;
}

.wiz-side {
  align-self: start;
  color: var(--ink);
}
.wiz-side h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 .5rem;
}
.wiz-side p { color: var(--muted); margin: 0 0 .4rem; }
.wiz-side .small { font-size: .8rem; margin-top: 1rem; }
.wiz-side .small a { color: var(--emerald-deep); }

/* =============================
   PAGO
   ============================= */

.pay-section {
  padding: 0 0 6rem;
}
.pay-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
}
@media (max-width: 960px) {
  .pay-shell { grid-template-columns: 1fr; }
}

.pay-form h2,
.pay-methods h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 .4rem;
  color: var(--ink);
}
.pay-methods h2 { color: #fff; }

.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 560px) {
  .pay-grid { grid-template-columns: 1fr; }
}

.pay-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: .75rem;
}
.pay-check a { color: var(--emerald-deep); text-decoration: underline; }

.pay-trust {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.badge-ssl {
  background: rgba(16,185,129,.08);
  color: var(--emerald-deep);
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid rgba(16,185,129,.25);
}

.pay-methods {
  color: #fff;
}
.pay-methods > p { color: rgba(255,255,255,.7); margin-top: .2rem; }

.pay-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  margin-top: .9rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  color: var(--ink);
  font: inherit;
}
.pay-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(10,22,40,.18);
  border-color: var(--gold);
}
.pay-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.pay-logo {
  display: flex;
  flex-direction: column;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 800;
}
.pay-logo small {
  display: block;
  font-weight: 400;
  font-size: .72rem;
  opacity: .85;
  margin-top: .1rem;
}
.pay-logo.webpay { background: linear-gradient(135deg, #d81e05, #ff6b1a); }
.pay-logo.mp     { background: linear-gradient(135deg, #009ee3, #00c2ff); }
.pay-logo.pp     { background: linear-gradient(135deg, #003087, #0070ba); }
.logo-w { font-family: 'Inter', sans-serif; letter-spacing: .02em; }
.pay-chevron {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
  transition: transform .2s;
}
.pay-card:hover .pay-chevron { transform: translateX(4px); }
.pay-card p {
  color: var(--muted);
  font-size: .88rem;
  margin: .2rem 0 .6rem;
  line-height: 1.45;
}
.pay-brands {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.pay-brands span {
  background: #f5f2ec;
  color: var(--ink-soft);
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
}

.pay-help {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
}
.pay-help p { margin: 0; color: rgba(255,255,255,.85); }

/* Terms modal */
.pay-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.pay-modal[aria-hidden="false"] { display: flex; }
.pay-modal-dialog {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pay-modal-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.pay-modal-dialog h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.2rem;
}
.pay-modal-close {
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.pay-modal-body {
  padding: 1.4rem;
  overflow: auto;
  color: var(--ink-soft);
  line-height: 1.6;
}
.pay-modal-body p { margin: 0 0 1rem; }

/* ===== Small util overrides ===== */
.muted { color: var(--muted); }

/* ===== Payment tile selected ===== */
.payment-method {
  cursor: pointer;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .2s;
}
.payment-method.selected {
  border-color: var(--emerald) !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,.2), 0 18px 40px rgba(10,22,40,.18) !important;
  transform: translateY(-2px);
}
.payment-method.selected::after {
  content: '✓';
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .85rem;
}
.payment-method.selected .pay-chevron { display: none; }

.pay-logo.gp { background: linear-gradient(135deg, #4285f4, #34a853); }

/* ===== Main pay button ===== */
.btn-pay {
  margin-top: 1rem;
  width: 100%;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  position: relative;
}
.btn-pay:disabled { opacity: .7; cursor: wait; }
.btn-pay.loading .btn-text::after {
  content: '';
  display: inline-block;
  width: .9rem;
  height: .9rem;
  margin-left: .5rem;
  border: 2px solid rgba(10,22,40,.3);
  border-top-color: #0a1628;
  border-radius: 50%;
  animation: payspin 0.7s linear infinite;
  vertical-align: -2px;
}
@keyframes payspin { to { transform: rotate(360deg); } }

/* ===== Status message ===== */
.status-message {
  display: none;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  margin: 1rem 0 .2rem;
  font-size: .92rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.status-message.success {
  display: block;
  background: rgba(16,185,129,.08);
  color: var(--emerald-deep);
  border-color: rgba(16,185,129,.3);
}
.status-message.error {
  display: block;
  background: rgba(225,29,72,.08);
  color: var(--rose);
  border-color: rgba(225,29,72,.3);
}
.status-message.info {
  display: block;
  background: rgba(59,130,246,.08);
  color: #1e40af;
  border-color: rgba(59,130,246,.3);
}

/* ===== PayPal / Google Pay containers ===== */
#paypal-button-container { display: none; margin-top: 1rem; min-height: 45px; }
#googlepay-button-container { display: none; margin-top: 1rem; min-height: 45px; }
#googlepay-button-container.active { display: block; }
#googlepay-button-container button,
#googlepay-button-container .gpay-button {
  width: 100% !important;
  min-height: 48px;
}

.paypal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem;
  color: var(--muted);
  font-size: .9rem;
}
.paypal-spinner {
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid rgba(10,22,40,.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: payspin 0.7s linear infinite;
}

/* Ensure textarea picks up styles */
.wiz-field textarea {
  font-family: inherit;
  resize: vertical;
  min-height: 70px;
}
.wiz-field small.muted {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .25rem;
}

/* ------------------------------------------------------------
   Static content pages (SEO landing & policy pages)
   ------------------------------------------------------------ */
.content-section {
  padding: 2rem 0 5rem;
}
.content-section .container {
  max-width: 880px;
}
.content-prose {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(15, 60, 50, .08);
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.content-prose h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin: 2rem 0 .75rem;
  color: var(--emerald-deep);
}
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 .5rem;
  color: var(--ink);
}
.content-prose p,
.content-prose li {
  color: var(--ink);
  line-height: 1.7;
  font-size: 1rem;
}
.content-prose p { margin: .5rem 0 1rem; }
.content-prose ul,
.content-prose ol {
  margin: .5rem 0 1.25rem 1.25rem;
  padding-left: .25rem;
}
.content-prose li { margin: .35rem 0; }
.content-prose a {
  color: var(--emerald-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-prose a:hover { color: var(--gold); }
.content-prose strong { color: var(--ink); }
.content-cta {
  margin-top: 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.content-cta .btn-primary,
.content-cta .btn-secondary { text-decoration: none; }
.content-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 60, 50, .08);
}
@media (max-width: 600px) {
  .content-prose { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   LANDING PAGES — premium hero + sections (lp-*)
   Used by /turismo-receptivo-.../, /private-tours-.../ etc.
   ============================================================ */

/* ── HERO with background image ─────────────────────────── */
.lp-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.lp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--lp-hero-img, none);
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.04);
}
.lp-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,.78) 0%, rgba(10,22,40,.55) 35%, rgba(10,22,40,.85) 100%),
    radial-gradient(ellipse at 75% 30%, rgba(251,191,36,.18), transparent 60%);
  z-index: -1;
}
.lp-hero .container { max-width: 1140px; }
.lp-hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
}
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lp-hero { min-height: auto; padding: 7rem 0 3.5rem; }
}
.lp-hero .kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.7);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}
.lp-hero .kicker-line {
  width: 36px; height: 1px;
  background: rgba(255,255,255,.4);
}
.lp-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
}
.lp-hero h1 em {
  font-style: italic;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-hero-lead {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 0 2rem;
}
.lp-hero-cta {
  display: flex; gap: .8rem; flex-wrap: wrap;
}
.lp-hero-cta .btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.lp-hero-cta .btn-primary {
  background: linear-gradient(90deg, var(--emerald), var(--emerald-deep));
  color: #fff;
  box-shadow: 0 12px 30px rgba(16,185,129,.35);
}
.lp-hero-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16,185,129,.45);
}
.lp-hero-cta .btn-outline {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.lp-hero-cta .btn-outline:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.5);
}
.lp-hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(14px);
}
.lp-hero-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  margin: 0 0 .85rem;
  color: #fff;
}
.lp-hero-card ul { list-style: none; padding: 0; margin: 0; }
.lp-hero-card li {
  display: flex; align-items: center; gap: .65rem;
  color: rgba(255,255,255,.88);
  font-size: .95rem; line-height: 1.5;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lp-hero-card li:last-child { border-bottom: none; }
.lp-hero-card li svg {
  width: 18px; height: 18px;
  color: var(--gold-soft);
  flex-shrink: 0;
}

/* ── Trust strip below hero ─────────────────────────────── */
.lp-trust {
  background: var(--bg-deep);
  color: rgba(255,255,255,.85);
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.lp-trust ul {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.lp-trust li { display: flex; flex-direction: column; gap: .15rem; }
.lp-trust strong {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--gold-soft);
  font-weight: 500;
}
.lp-trust span {
  font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* ── Section base ───────────────────────────────────────── */
.lp-section {
  padding: clamp(4rem, 9vh, 7rem) 0;
  position: relative;
}
.lp-section.alt { background: var(--surface-alt); }
.lp-section.dark {
  background: var(--bg);
  color: #fff;
}
.lp-section .container { max-width: 1140px; }
.lp-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.lp-section-head .kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--emerald-deep);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .8rem;
}
.lp-section.dark .lp-section-head .kicker { color: var(--gold-soft); }
.lp-section-head .kicker-line {
  width: 28px; height: 1px;
  background: var(--emerald-deep);
}
.lp-section.dark .lp-section-head .kicker-line { background: var(--gold-soft); }
.lp-section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .8rem;
  color: var(--ink);
}
.lp-section.dark .lp-section-head h2 { color: #fff; }
.lp-section-head h2 em {
  font-style: italic;
  color: var(--emerald-deep);
}
.lp-section.dark .lp-section-head h2 em {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}
.lp-section.dark .lp-section-head p { color: rgba(255,255,255,.7); }

/* ── Feature grid (3 cards: icon + title + text) ─────── */
.lp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.lp-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.lp-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald);
}
.lp-feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(251,191,36,.12));
  display: grid; place-items: center;
  color: var(--emerald-deep);
  margin-bottom: 1.1rem;
}
.lp-feature-icon svg { width: 22px; height: 22px; }
.lp-feature h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 .6rem;
  color: var(--ink);
}
.lp-feature p {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Image mosaic (3 photos) ──────────────────────────── */
.lp-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
@media (max-width: 760px) {
  .lp-mosaic { grid-template-columns: 1fr 1fr; }
  .lp-mosaic figure:first-child { grid-column: 1 / -1; }
}
.lp-mosaic figure {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg);
}
.lp-mosaic figure:first-child { aspect-ratio: 16/12; }
.lp-mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.lp-mosaic figure:hover img { transform: scale(1.05); }
.lp-mosaic figcaption {
  position: absolute; left: 14px; bottom: 14px;
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
}

/* ── Steps (numbered process) ──────────────────────────── */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.lp-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
  position: relative;
}
.lp-section.dark .lp-step {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
.lp-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--gold);
  display: block;
  margin-bottom: .6rem;
  line-height: 1;
}
.lp-step h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 .5rem;
  color: var(--ink);
}
.lp-section.dark .lp-step h3 { color: #fff; }
.lp-step p {
  color: var(--ink-soft);
  font-size: .95rem; line-height: 1.6;
  margin: 0;
}
.lp-section.dark .lp-step p { color: rgba(255,255,255,.7); }

/* ── Quote / testimonial card ──────────────────────────── */
.lp-quote {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2.25rem;
  background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(251,191,36,.06));
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 22px;
  text-align: center;
}
.lp-quote blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1.2rem;
}
.lp-quote cite {
  font-style: normal;
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .5px;
}

/* ── Final CTA banner ──────────────────────────────────── */
.lp-cta-band {
  position: relative;
  padding: 5rem 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.lp-cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--lp-cta-img, none);
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.lp-cta-band::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,.85), rgba(5,12,24,.92));
  z-index: -1;
}
.lp-cta-band h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.lp-cta-band h2 em {
  font-style: italic;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-cta-band p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.lp-cta-band-actions {
  display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap;
}
.lp-cta-band .btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.lp-cta-band .btn-primary {
  background: linear-gradient(90deg, var(--emerald), var(--emerald-deep));
  color: #fff;
  box-shadow: 0 12px 30px rgba(16,185,129,.4);
}
.lp-cta-band .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16,185,129,.55);
}
.lp-cta-band .btn-outline {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.lp-cta-band .btn-outline:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.5);
}

/* ── Two-column split (text + image) ───────────────────── */
.lp-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .lp-split { grid-template-columns: 1fr; gap: 2rem; }
}
.lp-split-img {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 5/4;
  box-shadow: var(--shadow-lg);
}
.lp-split-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.lp-split-img:hover img { transform: scale(1.04); }
.lp-split h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink);
}
.lp-split h2 em { font-style: italic; color: var(--emerald-deep); }
.lp-split p {
  color: var(--ink-soft);
  font-size: 1rem; line-height: 1.7;
  margin: 0 0 1rem;
}
.lp-split ul {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}
.lp-split ul li {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .5rem 0;
  color: var(--ink-soft);
  line-height: 1.55;
}
.lp-split ul li svg {
  width: 18px; height: 18px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── FAQ accordion (using <details>) ───────────────────── */
.lp-faq-list { max-width: 820px; margin: 0 auto; }
.lp-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.lp-faq-item[open] {
  border-color: var(--emerald);
  box-shadow: var(--shadow-sm);
}
.lp-faq-item summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--emerald-deep);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
  font-weight: 300;
}
.lp-faq-item[open] summary::after { content: '−'; transform: rotate(0); }
.lp-faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: .97rem;
}
.lp-faq-body p { margin: 0 0 .75rem; }
.lp-faq-body p:last-child { margin-bottom: 0; }
.lp-faq-body a { color: var(--emerald-deep); text-decoration: underline; }
.lp-faq-body strong { color: var(--ink); }

/* ── Policy / legal layout (TOC + body) ────────────────── */
.lp-doc {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 860px) {
  .lp-doc { grid-template-columns: 1fr; gap: 1.5rem; }
}
.lp-toc {
  position: sticky; top: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.1rem;
  font-size: .9rem;
}
.lp-toc h4 {
  margin: 0 0 .8rem;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--emerald-deep);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.lp-toc ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: tocnum;
}
.lp-toc li {
  counter-increment: tocnum;
  margin: .1rem 0;
}
.lp-toc a {
  color: var(--ink-soft);
  text-decoration: none;
  display: block;
  padding: .35rem 0;
  border-left: 2px solid transparent;
  padding-left: .6rem;
  margin-left: -.6rem;
  transition: all .2s;
  font-size: .9rem;
}
.lp-toc a::before {
  content: counter(tocnum, decimal-leading-zero) "  ";
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .75rem;
}
.lp-toc a:hover {
  color: var(--emerald-deep);
  border-left-color: var(--emerald);
  background: rgba(16,185,129,.04);
}
.lp-doc-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.lp-doc-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--emerald-deep);
  margin: 2.25rem 0 .75rem;
  scroll-margin-top: 100px;
}
.lp-doc-body h2:first-child { margin-top: 0; }
.lp-doc-body h2 .num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted);
  margin-right: .6rem;
  letter-spacing: 2px;
}
.lp-doc-body h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 1.4rem 0 .5rem;
}
.lp-doc-body p,
.lp-doc-body li {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1rem;
}
.lp-doc-body p { margin: .5rem 0 1rem; }
.lp-doc-body ul, .lp-doc-body ol {
  margin: .5rem 0 1.25rem 1.25rem;
  padding-left: .25rem;
}
.lp-doc-body li { margin: .35rem 0; }
.lp-doc-body strong { color: var(--ink); }
.lp-doc-body a {
  color: var(--emerald-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Cancellation tier table (visual) ──────────────────── */
.lp-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.lp-tier {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}
.lp-tier .tier-pct {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 500;
  margin: 0 0 .25rem;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.lp-tier .tier-when {
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.lp-tier.tier-warn .tier-pct { background: linear-gradient(135deg, var(--coral), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Header default para landing pages ──── */
.primary-nav { display: inline-flex; gap: 1.4rem; align-items: center; }
.primary-nav a {
  color: var(--ink-soft);
  font-weight: 500; font-size: 14px;
  letter-spacing: .2px;
  transition: color .2s var(--ease);
}
.primary-nav a:hover { color: var(--emerald-deep); }

.lp-page .site-header {
  background: transparent;
  border-bottom: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.lp-page .site-header.is-stuck {
  background: rgba(10, 22, 40, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255,255,255,.08);
}
.lp-page .brand-name {
  background: linear-gradient(135deg, #fff, #e5e7eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-page .primary-nav a { color: rgba(255,255,255,.85); }
.lp-page .primary-nav a:hover { color: var(--gold-soft); }

@media (max-width: 720px) {
  .primary-nav { gap: .9rem; font-size: 13px; }
  .primary-nav a { font-size: 13px; }
}

/* ── Scroll reveal helper (already exists in styles.css but this resets default) ── */
.lp-reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.lp-reveal.in { opacity: 1; transform: none; }

/* ============================================================
   LANGUAGE SWITCHER (ES · EN · PT-BR)
   Used in navbar of every page across all language versions.
   ============================================================ */
.lang-switch {
  position: relative;
  margin-left: 1rem;
}
.lang-switch > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border: 1px solid rgba(15, 60, 50, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #0a1628);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(15, 60, 50, .25);
}
.lang-switch > summary .flag {
  font-size: 15px;
  line-height: 1;
}
.lang-switch > summary .chev {
  width: 10px; height: 10px;
  transition: transform .2s ease;
}
.lang-switch[open] > summary .chev { transform: rotate(180deg); }
.lang-switch-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid rgba(15, 60, 50, .1);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(10, 22, 40, .12);
  padding: .4rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.lang-switch-menu a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  font-size: 13.5px;
  color: var(--ink, #0a1628);
  text-decoration: none;
  border-radius: 9px;
  transition: background .15s ease;
}
.lang-switch-menu a:hover { background: rgba(52, 211, 153, .08); }
.lang-switch-menu a.is-current {
  background: rgba(251, 191, 36, .12);
  font-weight: 600;
}
.lang-switch-menu a .flag { font-size: 16px; line-height: 1; }
.lang-switch-menu a .lbl-meta { font-size: 11px; color: var(--muted, #6b7a89); margin-left: auto; }

/* On the home/SPA page where header background is dark glass */
body:not(.lp-page) .lang-switch > summary {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .15);
}
body:not(.lp-page) .lang-switch > summary:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
}

@media (max-width: 720px) {
  .lang-switch { margin-left: .5rem; }
  .lang-switch > summary { padding: .4rem .55rem; font-size: 12px; }
  .lang-switch > summary .lbl-text { display: none; }
  .lang-switch-menu { right: -.5rem; }
}

/* =========================================================
   Cotizador UX — inline errors, autosave, loading, toast
   ========================================================= */

/* Inline field errors */
.wiz-field input.is-invalid,
.wiz-field textarea.is-invalid,
.wiz-field select.is-invalid,
.wiz-panel input.is-invalid,
.wiz-panel textarea.is-invalid,
.wiz-panel select.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.wiz-field-error {
  display: block;
  margin-top: .35rem;
  color: #b91c1c;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.3;
}
.wiz-field-error::before {
  content: "⚠ ";
  margin-right: .15rem;
}

/* Draft recovery banner */
.wiz-draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  background: #fef9ec;
  border: 1px solid #f3d88a;
  border-radius: var(--radius-sm, 10px);
  color: #78500a;
  font-size: .9rem;
}
.wiz-draft-banner button { flex: 0 0 auto; padding: .45rem .9rem; font-size: .85rem; }
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted, #64748b);
  padding: .45rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
}
.btn-ghost:hover { color: #b91c1c; text-decoration: underline; }

/* Discreet "Borrador guardado" indicator */
.wiz-draft-saved {
  display: inline-block;
  margin-left: .75rem;
  font-size: .8rem;
  color: #059669;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .2s ease, transform .2s ease;
}
.wiz-draft-saved.is-shown { opacity: 1; transform: translateY(0); }

/* Toast */
.wiz-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: #0f172a;
  color: #fff;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  z-index: 9000;
  transition: opacity .22s ease, transform .22s ease;
  max-width: min(90vw, 420px);
  text-align: center;
}
.wiz-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.wiz-toast.is-success { background: #059669; }
.wiz-toast.is-error { background: #b91c1c; }

/* Loading-state buttons (disabled look + spinner) */
.btn-wa.is-loading,
.btn-primary.is-loading,
.btn-secondary.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .75;
}
.btn-wa.is-loading::after,
.btn-primary.is-loading::after,
.btn-secondary.is-loading::after {
  content: "";
  position: absolute;
  right: .9rem;
  top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: wiz-spin .7s linear infinite;
}
@keyframes wiz-spin { to { transform: rotate(360deg); } }

/* Primary-visual emphasis on WhatsApp submit (conversion path) */
.wiz-actions .btn-wa {
  order: -1;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .28);
  padding-right: 2.4rem; /* space for optional spinner */
}
