/* DP Travels eSIM — estilos públicos */
:root {
  --navy: #071A33;
  --navy-2: #0E2A52;
  --navy-line: #1D4A80;
  --cyan: #17C3F2;
  --cyan-soft: #8FE3FF;
  --blue: #2F6BFF;
  --link: #0B5FD9;
  --yellow: #FFC93C;
  --ink: #1C2B44;
  --body: #4A5A72;
  --muted: #5B6B82;
  --line: #DCE5F2;
  --soft: #F3F7FC;
  --on-dark: #C2D3EA;
  --radius: 18px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: #073F94; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.mt { margin-top: 24px; }
.mb { margin-bottom: 16px; }
.pt-0 { padding-top: 0 !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { color: var(--navy); }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

/* Cabecera */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; white-space: nowrap; }
.brand-text span { color: var(--cyan); }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.main-nav > a:not(.btn) { color: #D6E3F5; text-decoration: none; }
.main-nav > a:not(.btn):hover { color: #fff; }
.lang-switch { display: flex; border: 1px solid #2A4A78; border-radius: 10px; overflow: hidden; }
.lang-switch a { color: #D6E3F5; text-decoration: none; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.lang-switch a.on { background: var(--navy-2); color: var(--cyan); }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid #2A4A78; border-radius: 10px; width: 48px; height: 48px; cursor: pointer; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 56px 0 96px; overflow: hidden; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 480px; height: auto; }
.hero-art .orbit { transform-origin: 230px 240px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(342deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .orbit { animation: none; } html { scroll-behavior: auto; } }
.pill { align-self: flex-start; background: var(--navy-2); color: var(--cyan-soft); border: 1px solid var(--navy-line); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -1.2px; }
.h1.sm { font-size: clamp(32px, 4vw, 46px); }
.h1.dark { color: var(--navy); }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); color: var(--navy); line-height: 1.15; }
.h2.light { color: #fff; }
.h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--navy); }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--on-dark); max-width: 580px; }
.muted { color: var(--body); margin: 0; }
.muted-light { color: var(--on-dark); margin: 0 0 6px; }
.search { display: flex; flex-wrap: wrap; gap: 10px; background: #fff; border-radius: 16px; padding: 8px; max-width: 580px; }
.search-field { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--muted); }
.search-field input { border: 0; outline: none; font-size: 17px; width: 100%; padding: 14px 0; font-family: var(--font-body); color: var(--ink); background: transparent; }
.search-inline { margin-top: 20px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; color: var(--on-dark); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 18px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317C3F2' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* Secciones */
.section { padding: 80px 0; }
.bg-soft { background: var(--soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head .muted { margin-top: 10px; font-size: 17px; }
.link-strong { font-weight: 600; }
.empty { background: var(--soft); border-radius: var(--radius); padding: 28px; color: var(--body); text-align: center; }
.page-head { background: var(--navy); color: #fff; padding: 48px 0 56px; }
.page-head .lead { margin-top: 12px; }

/* Tarjetas de país */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.country-card { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); height: 100%; transition: border-color .15s, box-shadow .15s, transform .15s; }
.country-card:hover { border-color: var(--blue); box-shadow: 0 10px 30px rgba(7, 26, 51, .08); transform: translateY(-2px); color: var(--ink); }
.cc-top { display: flex; align-items: center; gap: 14px; }
.flag { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.cc-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--navy); }
.cc-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #E7EDF6; padding-top: 16px; font-size: 15px; color: var(--body); }
.cc-bottom strong { color: var(--navy); font-size: 18px; }
.cc-link { font-size: 14px; font-weight: 600; color: var(--link); }

/* Pasos y tarjetas */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--soft); }
.step-n { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.step h3, .card h3 { margin: 0; font-family: var(--font-display); font-size: 20px; color: var(--navy); }
.step p, .card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }

/* Compatibilidad */
.compat { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; background: var(--navy); color: #fff; border-radius: 28px; padding: 48px; }
.compat-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.compat-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.compat-copy strong { color: var(--yellow); }
.compat-form { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.compat-form label { font-size: 14px; color: var(--on-dark); }
.compat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.compat-row input { flex: 1 1 200px; border: 1px solid #2A4A78; background: var(--navy-2); color: #fff; border-radius: 12px; padding: 14px; font-size: 16px; font-family: var(--font-body); min-height: 48px; }
.compat-result { margin: 6px 0 0; min-height: 24px; color: var(--cyan-soft); font-size: 15px; }

/* FAQ y CTA */
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.faq { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; background: #fff; }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--navy); cursor: pointer; }
.faq p { margin: 12px 0 0; color: var(--body); line-height: 1.6; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--blue); border-radius: 28px; padding: 48px; color: #fff; }
.cta-band p { margin: 8px 0 0; color: #E3ECFF; font-size: 17px; }
.prose h2 { font-family: var(--font-display); color: var(--navy); font-size: 26px; margin: 0 0 12px; }
.prose h3 { font-family: var(--font-display); color: var(--navy); font-size: 20px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--body); line-height: 1.7; font-size: 16px; }

/* Página de país */
.country-hero { background: var(--navy); color: #fff; padding: 28px 0 80px; }
.crumbs { font-size: 14px; color: #9FB3D1; margin-bottom: 22px; }
.crumbs a { color: #9FB3D1; }
.ch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.flag-lg { width: 88px; height: 66px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 2px var(--cyan); }
.ch-row .lead { margin-top: 8px; }
.pills { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.country-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: -44px; }
.country-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.panel { background: #fff; border-radius: 22px; padding: 28px; border: 1px solid var(--line); margin: 0; min-width: 0; }
fieldset.panel { display: flex; flex-direction: column; gap: 20px; }
fieldset.panel legend { float: left; width: 100%; margin-bottom: 18px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; clear: both; }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; min-height: 132px; transition: border-color .15s, background .15s; }
.plan input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plan:hover { border-color: var(--blue); }
.plan:has(input:checked) { border: 2px solid var(--blue); background: #EEF4FF; padding: 17px; }
.plan:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.plan-gb { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--navy); }
.plan-days { font-size: 15px; color: var(--body); }
.plan-price { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--link); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts span { font-size: 14px; color: var(--muted); }
.facts strong { color: var(--navy); }
.buy-box { flex: 1 1 340px; min-width: 0; background: #fff; border-radius: 22px; padding: 28px; border: 2px solid var(--blue); display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.buy-line { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; background: var(--soft); border-radius: 12px; padding: 14px; }
.buy-line strong { white-space: nowrap; }
.qr-box [data-qr-fallback] img, .qr-box [data-qr-fallback] canvas { display: block; width: 240px; height: 240px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #33445E; }
.field input, .field select, .field textarea { border: 1px solid #C9D5E6; border-radius: 12px; padding: 13px 14px; font-size: 16px; font-family: var(--font-body); font-weight: 400; color: var(--ink); min-height: 48px; background: #fff; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--body); line-height: 1.5; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.tiny { font-size: 13px; color: var(--muted); margin: 0; }
.pay-methods { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 8px; }
.pay-methods li { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--navy); }
.alert { margin: 0; background: #FFF1F0; border: 1px solid #F5B5AE; color: #8A1C12; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.flash { margin: 16px 0 0; background: #EEF4FF; border: 1px solid #BFD3FF; color: #0B3F94; border-radius: 12px; padding: 12px 14px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }

/* Pedido */
.status { display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--navy-2); color: var(--cyan-soft); }
.status-delivered { background: #DFF6EA; color: #0E5A35; }
.status-pending_payment, .status-payment_failed { background: #FFF4D6; color: #6B4B00; }
.esim-ready { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.qr-box { flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.qr-box img { display: block; width: 240px; height: 240px; }
.esim-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.esim-info p { margin: 0; color: var(--body); }
.codes { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.codes dt { color: var(--muted); }
.codes dd { margin: 0; min-width: 0; }
.codes code { background: var(--soft); padding: 4px 8px; border-radius: 6px; word-break: break-all; cursor: copy; }
.usage-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--body); margin-bottom: 6px; }
.usage-bar { height: 10px; background: #E7EDF6; border-radius: 999px; overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: var(--cyan); }
.howto { margin: 0; padding-left: 20px; color: var(--body); line-height: 1.7; }
.note { background: #FFF8E1; border: 1px solid #F3D88A; color: #5C4400; border-radius: 12px; padding: 14px 16px; margin-bottom: 0; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 5px solid #E7EDF6; border-top-color: var(--blue); margin: 0 auto 16px; animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* Pie */
.site-footer { background: var(--navy); color: var(--on-dark); padding: 48px 0 28px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; font-size: 15px; }
.footer-brand { max-width: 380px; }
.footer-brand p { margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--on-dark); }
.footer-legal { margin-top: 28px; font-size: 13px; color: #9FB3D1; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 60; }
.wa-float:hover { color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 4px; border-top: 1px solid var(--navy-2); }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.btn) { padding: 12px 0; }
  .lang-switch { align-self: flex-start; margin: 8px 0; }
  .site-header { position: relative; }
  .buy-box { position: static; }
}
@media (max-width: 600px) {
  .hero { padding: 36px 0 64px; }
  .section { padding: 56px 0; }
  .compat, .cta-band { padding: 28px; border-radius: 22px; }
  .panel, .buy-box { padding: 20px; }
  .brand-text { font-size: 18px; }
  .qr-box img { width: 200px; height: 200px; }
}
