/* Estilos para páginas-corredor /corredor/<origen>-<destino>/<visa>
 * Standalone (no carga app.min.css). Coherente visualmente con la calculadora. */

/* ── Reset moderno mínimo ─────────────────────────────────────────────── */

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

html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: inline-block; vertical-align: middle; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: 'Fraunces', serif; }
p, ul, ol { margin: 0; }

/* ── Body ─────────────────────────────────────────────────────────────── */

body.page-corredor {
  background: var(--neutral-100);
  color: var(--text-violet-tinted);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

#cor-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */

body.page-corredor #app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--neutral-50);
  border-bottom: 1px solid rgba(23, 33, 43, 0.06);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.page-corredor .nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

body.page-corredor .nav-logo-image {
  height: 36px;
  width: auto;
}

body.page-corredor .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.page-corredor .nav-link {
  color: rgba(23, 33, 43, 0.72);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: background .15s, color .15s;
}

body.page-corredor .nav-link:hover {
  background: rgba(23, 33, 43, 0.06);
  color: var(--neutral-nav-hover);
}

body.page-corredor .nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-corredor .nav-instagram {
  color: var(--neutral-600);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

body.page-corredor .nav-instagram:hover { color: var(--neutral-nav-hover); }

body.page-corredor .nav-login-btn {
  background: transparent;
  border: 1px solid rgba(23, 33, 43, 0.2);
  color: var(--neutral-nav-hover);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

body.page-corredor .nav-login-btn:hover {
  background: rgba(23, 33, 43, 0.06);
  border-color: rgba(23, 33, 43, 0.4);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.cor-hero {
  padding: 56px 20px 48px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(248, 79, 118, 0.06) 0%, rgba(248, 79, 118, 0) 50%),
    linear-gradient(180deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  margin: 0 -20px 0;
  border-bottom: 1px solid rgba(23, 33, 43, 0.06);
}

.cor-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.cor-flags {
  font-size: 4rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  line-height: 1;
}

.cor-flags-arrow {
  font-size: 2.5rem;
  color: var(--brand-500);
  font-weight: 700;
}

/* ── Hero BP pair ─────────────────────────────────────────────────────── */

.cor-hero-bp-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cor-hero-bp-pair .mqi-bp {
  --bp-w: 180px;
  --bp-h: 65px;
}

.cor-hero-bp-arrow {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-500);
}

@media (max-width: 480px) {
  .cor-hero-bp-pair .mqi-bp {
    --bp-w: 130px;
    --bp-h: 52px;
  }
}

/* Fix: sin grid-template-rows el auto-sizing usa la altura del body (~85px),
   no --bp-h. El SVG queda más alto que el card y overflow:hidden recorta
   el tercio inferior de la bandera. Forzamos stub a exactamente --bp-h. */
.page-corredor .mqi-bp__stub {
  height: var(--bp-h, 100px);
}

.cor-hero-pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand-100);
  border: 1px solid var(--brand-300);
  color: var(--brand-800);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cor-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

.cor-hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--neutral-600);
  max-width: 700px;
  margin: 0 auto 28px;
}

.cor-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Botones ───────────────────────────────────────────────────────────── */

.cor-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 24px;
  background: var(--brand-500);
  color: var(--surface-white);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.cor-btn-primary:hover { background: var(--brand-600); }
.cor-btn-primary:active { transform: translateY(1px); }

.cor-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 24px;
  background: transparent;
  color: var(--text-violet-tinted);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.cor-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.35);
}

/* ── Stats bar ─────────────────────────────────────────────────────────── */

.cor-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: -28px auto 48px;
  max-width: 900px;
  padding: 0 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 720px) {
  .cor-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
  }
}

.cor-stat {
  background: var(--surface-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.cor-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cor-stat-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--neutral-900);
  line-height: 1.2;
  margin-bottom: 4px;
}

.cor-stat-label {
  font-size: 0.78rem;
  color: var(--neutral-500);
  font-weight: 500;
  line-height: 1.3;
}

/* ── Sections genéricas ───────────────────────────────────────────────── */

.cor-section {
  margin-bottom: 56px;
}

.cor-section-head {
  text-align: center;
  margin-bottom: 28px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cor-section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-700);
  margin-bottom: 8px;
}

.cor-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cor-section-sub {
  font-size: 1rem;
  color: var(--neutral-600);
  line-height: 1.55;
}

/* ── Steps (proceso) ──────────────────────────────────────────────────── */

.cor-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.cor-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  background: var(--surface-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 20px 22px;
  align-items: start;
}

@media (max-width: 600px) {
  .cor-step {
    grid-template-columns: 44px 1fr;
    padding: 16px;
  }
}

.cor-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: var(--surface-white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cor-step-content {
  min-width: 0;
}

.cor-step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.cor-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-900);
  flex: 1 1 auto;
  min-width: 0;
}

.cor-step-duration {
  font-size: 0.75rem;
  color: var(--neutral-500);
  background: rgba(15, 23, 42, 0.04);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.cor-step-details {
  font-size: 0.95rem;
  color: var(--neutral-600);
  line-height: 1.6;
  margin-bottom: 12px;
}

.cor-step-tip {
  background: rgba(248, 79, 118, 0.06);
  border-left: 3px solid var(--brand-500);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--neutral-600);
  border-radius: 6px;
  line-height: 1.5;
}

.cor-step-tip strong {
  color: var(--brand-700);
  margin-right: 4px;
}

/* ── Errores comunes ──────────────────────────────────────────────────── */

.cor-mistakes-list {
  display: grid;
  gap: 10px;
}

.cor-mistake {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  background: var(--surface-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 18px;
  align-items: start;
}

.cor-mistake-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--status-error);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cor-mistake-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cor-mistake-consequence {
  font-size: 0.88rem;
  color: var(--neutral-500);
  line-height: 1.5;
}

.cor-mistake-consequence strong {
  color: var(--status-error);
}

/* ── FAQs ─────────────────────────────────────────────────────────────── */

.cor-faqs-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}

.cor-faq {
  background: var(--surface-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s;
}

.cor-faq:hover { border-color: rgba(248, 79, 118, 0.3); }

.cor-faq-summary {
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.cor-faq-summary::-webkit-details-marker { display: none; }

.cor-faq-summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--neutral-500);
  margin-left: 12px;
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}

.cor-faq[open] .cor-faq-summary::after {
  transform: rotate(45deg);
  color: var(--brand-500);
}

.cor-faq-summary h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin: 0;
  line-height: 1.4;
}

.cor-faq-answer {
  padding: 0 20px 20px;
  font-size: 0.92rem;
  color: var(--neutral-600);
  line-height: 1.65;
}

/* ── Calculadora embed CTA ────────────────────────────────────────────── */

.cor-calc-card {
  background: linear-gradient(135deg, var(--brand-100) 0%, var(--brand-50) 100%);
  border: 1px solid rgba(248, 79, 118, 0.25);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cor-calc-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 10px;
}

.cor-calc-sub {
  font-size: 0.98rem;
  color: var(--neutral-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Corredores relacionados ──────────────────────────────────────────── */

.cor-related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.cor-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text-violet-tinted);
  transition: border-color .15s, transform .15s;
}

.cor-related-card:hover {
  border-color: rgba(248, 79, 118, 0.4);
  transform: translateY(-2px);
}

.cor-related-arrow {
  color: var(--brand-500);
  font-weight: 800;
  font-size: 1.2rem;
}

.cor-related-card strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neutral-900);
}

/* ── Autoridad / fuentes ──────────────────────────────────────────────── */

.cor-authority {
  background: var(--surface-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 24px;
  margin-top: 56px;
}

.cor-authority-meta {
  font-size: 0.88rem;
  color: var(--neutral-600);
  margin-bottom: 12px;
}

.cor-authority-meta strong {
  color: var(--neutral-900);
}

.cor-authority-disclaimer {
  font-size: 0.85rem;
  color: var(--neutral-500);
  line-height: 1.6;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: var(--surface-soft);
  border-radius: 8px;
  border-left: 3px solid var(--neutral-300);
}

.cor-authority-disclaimer strong { color: var(--neutral-900); }

.cor-sources h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 10px;
}

.cor-sources ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cor-sources li {
  font-size: 0.88rem;
  color: var(--neutral-600);
  line-height: 1.55;
}

.cor-sources a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: none;
}

.cor-sources a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.cor-footer {
  margin-top: 80px;
  background: var(--neutral-50);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 40px 20px;
}

.cor-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 700px) {
  .cor-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.cor-footer-brand p {
  font-size: 0.92rem;
  color: var(--neutral-600);
  margin-top: 8px;
}

.cor-footer-logo {
  height: 32px;
  width: auto;
}

.cor-footer-links {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .cor-footer-links { justify-content: center; }
}

.cor-footer-links a {
  color: var(--neutral-600);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.cor-footer-links a:hover { color: var(--neutral-900); }

.cor-footer-fine {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.78rem;
  color: var(--neutral-500);
  text-align: center;
}

/* ── Paid offer section ───────────────────────────────────────────────────── */

.paid-offer-section {
  background: var(--surface-white);
  border: 2px solid var(--coral);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(232, 56, 90, 0.10);
}

.paid-offer-section--preorder {
  background: var(--bone);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.paid-offer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.paid-offer-header { display: flex; flex-direction: column; gap: 8px; }

.paid-offer-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.paid-offer-badge--active {
  background: rgba(232, 56, 90, 0.10);
  color: var(--coral);
  border: 1px solid rgba(232, 56, 90, 0.25);
}

.paid-offer-badge--soon {
  background: var(--neutral-200);
  color: var(--neutral-600);
  border: 1px solid var(--border-medium);
}

.paid-offer-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.paid-offer-subtitle {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--neutral-600);
}

.paid-offer-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paid-offer-highlight {
  font-size: 0.92rem;
  color: var(--neutral-700);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.paid-offer-section:not(.paid-offer-section--preorder) .paid-offer-highlight::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
  font-size: 0.84rem;
}

.paid-offer-section--preorder .paid-offer-highlight::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--neutral-400);
  font-weight: 700;
  font-size: 0.84rem;
}

.paid-offer-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.paid-offer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--coral);
  color: #fff;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background .15s, transform .1s;
}

.paid-offer-cta:hover { background: var(--coral-dark); }
.paid-offer-cta:active { transform: translateY(1px); }

.paid-offer-cta-price {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.85;
  padding: 2px 8px;
  background: rgba(255,255,255,0.18);
  border-radius: 6px;
}

.paid-offer-delivery {
  font-size: 0.84rem;
  color: var(--neutral-500);
}

/* Preorder form */
.paid-offer-preorder { width: 100%; }

.paid-offer-form { display: flex; flex-direction: column; gap: 8px; }

.paid-offer-form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neutral-700);
}

.paid-offer-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.paid-offer-email {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface-white);
  color: var(--navy);
}

.paid-offer-email:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 33, 72, 0.12);
}

.paid-offer-submit {
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.paid-offer-submit:hover { background: var(--neutral-800); }
.paid-offer-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.paid-offer-success {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--forest);
  padding: 10px 0;
}

@media (max-width: 640px) {
  .paid-offer-section { padding: 24px; }
  .paid-offer-form-row { flex-direction: column; }
  .paid-offer-email { min-width: 0; width: 100%; }
  .paid-offer-submit { width: 100%; }
}

@media (max-width: 480px) {
  .paid-offer-footer { flex-direction: column; align-items: flex-start; }
  .paid-offer-cta { width: 100%; justify-content: center; }
}
