/* ===== Base (mobile-first) ===== */
:root {
  --navy: #1e3a5f;
  --navy-dark: #17304e;
  --navy-light: #2c5080;
  --gray: #7d7d7d;
  --gray-light: #e5e7eb;
  --gray-bg: #f4f6fa;
  --text: #1f2937;
  --text-soft: #6b7280;
  --white: #ffffff;
  --wa: #25d366;
  --wa-dark: #1ebe5d;
  --shadow: 0 10px 30px rgba(30, 58, 95, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--gray-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header / Navbar ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  height: 38px;
  width: auto;
  display: block;
}
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wa-dark);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.wa-link svg { flex: 0 0 auto; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #eef3fa 100%);
  padding: 22px 0 16px;
  text-align: center;
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}
.hero h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero .accent {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 6px;
}
.hero .lead {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.92rem;
}

/* ===== Calculator ===== */
.calculator-wrap {
  padding: 8px 0 24px;
}
.calculator-wrap .container { max-width: 820px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px;
  border: 1px solid rgba(30, 58, 95, 0.06);
}
.calculator.card {
  box-shadow:
    0 0 0 2px rgba(30, 58, 95, 0.85),
    0 12px 32px rgba(30, 58, 95, 0.18);
  border-color: rgba(30, 58, 95, 0.9);
}
.calc-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.calc-header h2 {
  font-size: 1rem;
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}
.rate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #eef3fa 0%, #dde7f4 100%);
  color: var(--navy);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(30, 58, 95, 0.1);
}
.rate-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 1.8s infinite;
  flex: 0 0 auto;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.rate-pill.stale .rate-dot { background: #f59e0b; }
.rate-pill.error .rate-dot { background: #ef4444; animation: none; }
.rate-pill.loading .rate-dot { background: #6b7280; }

/* Fields */
.field { margin-bottom: 10px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.input-group:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
}
.input-group input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 11px 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border-radius: 12px;
  width: 100%;
  min-width: 0;
}
.input-group .currency {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  background: #f8fafc;
  border-left: 1px solid var(--gray-light);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.hint {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.74rem;
}
.hint-right { text-align: right; }

.divider {
  position: relative;
  text-align: center;
  margin: 18px 0 14px;
}
.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--gray-light);
}
.divider span {
  position: relative;
  background: var(--white);
  padding: 0 12px;
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row { display: grid; gap: 10px; grid-template-columns: 1fr; }
.row-main {
  grid-template-columns: 1fr 1px 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.row-main .input-group input { padding: 10px 9px; font-size: 0.98rem; }
.row-main .input-group .currency { padding: 0 9px; font-size: 0.74rem; }
.row-main .field label { min-height: 2.4em; line-height: 1.2; }
.row-main .hint { min-height: 1em; }
.row-divider {
  background: var(--gray-light);
  align-self: stretch;
  margin: 2.4em 0 0;
}

.input-group .prefix {
  display: inline-flex; align-items: center;
  padding: 0 12px;
  font-weight: 700; color: var(--navy);
  background: #f8fafc;
  border-right: 1px solid var(--gray-light);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* Summary */
.summary {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--gray-light);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}
.summary-row strong {
  color: var(--text);
  font-size: 0.95rem;
}
.summary-row.highlight {
  border-top: 1px dashed var(--gray-light);
  margin-top: 4px;
  padding-top: 8px;
}
.summary-row.highlight span { color: var(--navy); font-weight: 600; }
.summary-row.highlight strong { color: var(--navy); font-size: 1.05rem; transition: color .2s; }
.summary-row.sub { padding-top: 2px; padding-bottom: 2px; font-size: 0.78rem; }
.summary-row.sub strong { font-size: 0.84rem; font-weight: 600; color: var(--text-soft); }
.summary-row strong { white-space: nowrap; }
@media (max-width: 480px) {
  .summary-row.sub { align-items: flex-start; gap: 10px; }
  .summary-row.sub .wrap-mobile { display: block; }
}
@keyframes value-flash {
  0%   { background: rgba(37, 211, 102, 0); }
  30%  { background: rgba(37, 211, 102, 0.18); }
  100% { background: rgba(37, 211, 102, 0); }
}
.summary-row.highlight.flash {
  animation: value-flash .6s ease-out;
  border-radius: 6px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  margin-top: 12px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform .1s, box-shadow .15s, background .15s;
  min-height: 48px;
}
.btn-whatsapp {
  background: var(--wa);
  color: white;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: var(--wa-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}
.btn-whatsapp:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35); }
.btn-whatsapp:not([aria-disabled="true"]) {
  animation: btn-pulse 2.4s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
  50%      { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55); }
}
.btn-arrow {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
  transition: transform .2s ease;
}
.btn-whatsapp:hover .btn-arrow { transform: translateX(4px); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp:not([aria-disabled="true"]) { animation: none; }
  .btn-arrow { transition: none; }
}

.disclaimer {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
}

/* Steps */
.steps {
  margin-top: 22px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
}
.steps h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--navy);
}
.steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
.steps li { margin-bottom: 6px; }
.steps strong { color: var(--text); }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cfd8e6;
  padding: 16px 0;
  margin-top: 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.logo-sm {
  height: 30px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  justify-self: start;
}
.foot-copy {
  text-align: center;
  color: #cfd8e6;
  font-size: 0.8rem;
  white-space: nowrap;
}
.foot-wa {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}
.foot-wa svg { flex: 0 0 auto; }

@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    row-gap: 8px;
  }
  .logo-sm { grid-row: 1; grid-column: 1; }
  .foot-wa { grid-row: 1; grid-column: 2; }
  .foot-copy {
    grid-row: 2;
    grid-column: 1 / -1;
    text-align: center;
    white-space: normal;
  }
}
.foot-contact { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.foot-contact a { color: #fff; font-weight: 600; }

.foot-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.foot-social-label {
  color: #cfd8e6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background .15s, border-color .15s, transform .1s;
}
.foot-social-link:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transform: translateY(-1px);
}
.foot-social-link svg { flex: 0 0 auto; }

/* ===== Tabs ===== */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  background: #eef3fa;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(30, 58, 95, 0.08);
}
.tab {
  border: 0;
  background: transparent;
  padding: 10px 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-soft);
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.tab svg { flex: 0 0 auto; }
.tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(30, 58, 95, 0.08);
}
.hidden { display: none !important; }

/* ===== Info note ===== */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  margin: 4px 0 6px;
  background: #eef6ff;
  border: 1px solid #cfe2f7;
  border-radius: 10px;
  color: #1e3a5f;
  font-size: 0.78rem;
  line-height: 1.3;
}
.info-note svg { flex: 0 0 auto; color: var(--navy); margin-top: 1px; }

/* ===== Offers (saldo móvil) ===== */
.panel-intro {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}
.offers {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}
.offer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.offer:hover { border-color: var(--navy-light); }
.offer.selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
}
.offer:active { transform: translateY(1px); }
.offer.featured { border-color: var(--wa); background: #f0fdf4; }
.offer.featured .offer-arrow { color: var(--wa); opacity: 1; }
.offer.featured.selected { box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22); }
.offer-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  background: var(--wa);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}
.offer-cup {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  text-align: left;
}
.offer-cup small { font-size: 0.7rem; font-weight: 700; color: var(--gray); margin-left: 4px; }
.offer-arrow {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  opacity: 0.6;
}
.offer-usd {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  text-align: right;
}
.offer-usd small { font-size: 0.7rem; font-weight: 700; }

/* ===== FAQ ===== */
.faq {
  margin-top: 22px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
}
.faq h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--navy);
}
.faq-group { margin-top: 18px; }
.faq-group:first-of-type { margin-top: 4px; }
.faq-group h4 {
  margin: 0 0 2px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
.faq-group > details {
  border-bottom: 1px solid var(--gray-light);
  padding: 10px 0;
}
.faq-group > details:last-of-type { border-bottom: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  padding-right: 28px;
  position: relative;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq p {
  margin: 8px 0 4px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Nested details (listas largas plegables dentro de una FAQ) */
.faq-nested {
  margin-top: 10px;
  background: #f8fafc;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 6px 12px;
}
.faq-nested[open] { padding-bottom: 10px; }
.faq-nested > summary {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
  padding: 4px 24px 4px 0;
}
.faq-nested > summary::after { font-size: 1.15rem; }
.faq-nested > p {
  margin: 6px 0 2px;
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ===== Delivery toggle ===== */
.delivery-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 12px;
  background: #eef3fa;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid rgba(30, 58, 95, 0.08);
}
.dtoggle {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s, color .15s, box-shadow .15s;
  font-family: inherit;
  line-height: 1.2;
}
.dtoggle svg { flex: 0 0 auto; }
.dtoggle.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(30, 58, 95, 0.08);
}

/* ===== Efectivo options ===== */
.efectivo-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #f0f5fb;
  border-radius: 10px;
  border: 1px solid rgba(30, 58, 95, 0.1);
}

/* Currency toggle (CUP / USD) */
.currency-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.currency-toggle-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ctoggle {
  border: 2px solid var(--gray-light);
  background: var(--white);
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  font-family: inherit;
}
.ctoggle.active {
  border-color: var(--navy);
  color: var(--navy);
  background: #dde7f4;
}
@media (max-width: 479px) {
  .currency-toggle-label { display: none; }
}

/* Municipio section */
.municipio-section { flex: 1; min-width: 0; }
.municipio-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.municipio-select {
  width: 100%;
  padding: 9px 28px 9px 10px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.municipio-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
}
.municipio-select option[value=""] { color: var(--text-soft); }

/* FAQ list inside details */
.faq ul {
  margin: 8px 0 4px;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
.faq ul li { margin-bottom: 4px; }

/* ===== Tablet / Desktop ===== */
@media (min-width: 640px) {
  .hero { padding: 32px 0 20px; }
  .hero h1 { font-size: 2.1rem; }
  .hero .accent { font-size: 1.1rem; }
  .hero .lead { font-size: 1rem; }

  .card { padding: 28px 26px; }
  .calc-header h2 { font-size: 1.25rem; }
  .rate-pill { font-size: 0.88rem; padding: 8px 14px; }

  .row-main { gap: 14px; }
  .row-main .input-group input { padding: 14px 14px; font-size: 1.15rem; }
  .row-main .input-group .currency { padding: 0 14px; font-size: 0.85rem; }

  .efectivo-options { gap: 14px; }
  .currency-toggle { gap: 8px; }
  .currency-toggle-label { font-size: 0.74rem; letter-spacing: 0.06em; }
  .ctoggle { padding: 4px 14px; font-size: 0.82rem; }
  .municipio-select { padding: 10px 36px 10px 12px; font-size: 0.92rem; }

  .tab { font-size: 1rem; padding: 12px 14px; }
  .offers { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .offer { padding: 14px 16px; }
  .offer-cup, .offer-usd { font-size: 1.25rem; }
  .offer-arrow { font-size: 1.3rem; }
  .panel-intro { margin-bottom: 14px; font-size: 0.92rem; }
  .info-note { padding: 8px 10px; font-size: 0.8rem; margin: 6px 0 10px; line-height: 1.35; }

  .footer-inner { padding: 4px 0; }
}

@media (min-width: 960px) {
  .hero h1 { font-size: 2.4rem; }
  .card { padding: 32px 32px; }
  .offers { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Navbar ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: color .15s;
}
.nav-link:hover {
  color: var(--navy);
  text-decoration: none;
}
.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-burger:hover { background: #eef3fa; }
.site-nav { display: none; }
.site-nav.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 6px 16px 12px;
  box-shadow: 0 14px 28px rgba(30, 58, 95, 0.14);
}
.site-nav.open .nav-link {
  padding: 11px 4px;
  border-bottom: 1px solid var(--gray-bg);
  font-size: 0.95rem;
}
.site-nav.open .nav-link:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  .nav-burger { display: none; }
}
@media (max-width: 519px) {
  .wa-number { display: none; }
}

html { scroll-behavior: smooth; }
#calculadora, #faq, #contacto { scroll-margin-top: 72px; }

/* ===== Guías ===== */

/* Vitrina en la portada */
.guias-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 20px 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  color: var(--white);
}
.guias-teaser h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--white);
}
.guias-teaser p {
  margin: 0;
  color: #dbe5f1;
  font-size: 0.88rem;
  line-height: 1.5;
}
.btn-guias {
  flex: 0 0 auto;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform .1s, box-shadow .15s;
}
.btn-guias:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Listado de guías */
.guias-wrap { padding: 8px 0 24px; }
.guias-wrap .container { max-width: 820px; }
.guias-index {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.guias-index:empty,
.guias-index:not(:has(li)) { display: none; }
.guias-index li { border-bottom: 1px solid var(--gray-light); }
.guias-index li:last-child { border-bottom: 0; }
.guias-index a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text);
}
.guias-index a:hover {
  color: var(--navy);
  background: #f8fafc;
  text-decoration: none;
}
.guia-tag {
  display: inline-block;
  background: #eef3fa;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
}
.guia-fecha {
  font-size: 0.74rem;
  color: var(--text-soft);
  font-weight: 400;
}
.guias-empty {
  background: var(--white);
  border: 1px dashed var(--gray-light);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--text-soft);
}
.guias-empty p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.guias-empty p:last-child { margin-bottom: 0; }

/* Página de contacto */
.contact-list {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .contact-list { grid-template-columns: 1fr 1fr 1fr; }
}
.contact-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 22px 18px;
  color: inherit;
  text-align: center;
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.contact-card:hover {
  text-decoration: none;
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.contact-icon.wa { background: #e9fbf0; color: var(--wa-dark); }
.contact-icon.fb { background: #e7f0fe; color: #1877f2; }
.contact-icon.ch { background: #eef3fa; color: var(--navy); }
.contact-card h2 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--navy);
}
.contact-card p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.contact-action {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  white-space: nowrap;
}
.contact-card.card-wa .contact-action { color: var(--wa-dark); }
.contact-note {
  margin-top: 18px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Artículo */
.article {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.article-back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.article h1 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 8px 0 4px;
  line-height: 1.25;
}
.article-meta {
  color: var(--text-soft);
  font-size: 0.8rem;
  margin: 0 0 16px;
}
.article h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 22px 0 8px;
}
.article h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin: 18px 0 6px;
}
.article p, .article ul, .article ol {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}
.article figure {
  margin: 14px 0;
  text-align: center;
}
.article figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.article figcaption {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 6px;
}
.article .img-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.article .img-row figure {
  flex: 1;
  min-width: 220px;
  margin: 14px 0 0;
}
.article .img-row figure img { max-height: 130px; width: auto; }
.bank-logo {
  display: block;
  max-height: 170px;
  max-width: 100%;
  width: auto;
  margin: 14px auto 10px;
}
.info-box {
  margin: 20px 0;
  padding: 16px 20px;
  background: #f0faf4;
  border: 1px solid #a8d5b8;
  border-left: 4px solid #2e7d52;
  border-radius: 10px;
}
.info-box p { margin: 0 0 8px; font-size: 0.95rem; }
.info-box ul { margin: 0; padding-left: 18px; }
.article p a, .article ul a, .article ol a {
  color: #1a6fb5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article p a:hover, .article ul a:hover, .article ol a:hover {
  color: var(--navy-dark);
}
.article-cta {
  margin-top: 26px;
  padding: 16px;
  background: #eef6ff;
  border: 1px solid #cfe2f7;
  border-radius: 12px;
}
.article-cta p { margin: 0 0 10px; font-size: 0.92rem; }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.25);
}
.btn-navy:hover {
  background: var(--navy-light);
  text-decoration: none;
}
@media (min-width: 640px) {
  .article { padding: 32px 36px; }
}

/* Directorio médico */
.dir-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-soft);
  font-size: 0.95rem;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px dashed #c5d5e8;
  margin-bottom: 24px;
}
.dir-divider {
  border: none;
  border-top: 1px solid #e0e8f0;
  margin: 32px 0;
}
.dir-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.dir-field { display: flex; flex-direction: column; gap: 6px; }
.dir-field label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.dir-field input, .dir-field select {
  padding: 10px 14px;
  border: 1px solid #c5d5e8;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.dir-field input:focus, .dir-field select:focus { border-color: var(--navy-light); }
.dir-checks { display: flex; flex-direction: column; gap: 10px; }
.dir-check { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; cursor: pointer; }
.dir-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--navy); }
.dir-submit { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 12px 24px; font-size: 0.97rem; }
.dir-cta-btn { display: inline-block; margin-top: 14px; padding: 12px 22px; font-size: 0.95rem; }
.dir-grid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; max-width: 100%; }
.dir-card {
  background: #fff;
  border: 1px solid #d4e3f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30,58,95,.07);
}
.dir-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dir-card-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 0; }
.dir-card-name a { color: var(--navy); text-decoration: none; }
.dir-card-name a:hover { text-decoration: underline; }
.dir-card-tag { font-size: 0.78rem; font-weight: 600; background: #eef6ff; color: #1a6fb5; border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.dir-card-doctors { font-size: 0.88rem; color: var(--text-soft); margin: 0 0 12px; }
.dir-card-flag { display: inline-block; font-size: 0.72rem; font-weight: 600; background: #fdeeec; color: #c0392b; border-radius: 20px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; vertical-align: middle; }
.dir-card-info { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--text); }
.dir-card-row { display: flex; align-items: flex-start; gap: 8px; }
.dir-card-row svg { flex-shrink: 0; margin-top: 1px; color: var(--navy-light); }
.dir-card-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dir-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; text-decoration: none;
  transition: opacity .2s;
}
.dir-card-link:hover { opacity: .8; text-decoration: none; }
.dir-card-link.wa { background: #25d366; color: #fff; }
.dir-card-link.web { background: #eef6ff; color: #1a6fb5; border: 1px solid #cfe2f7; }
.dir-card-link.ig { background: #f5f0ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.dir-card-link.fb { background: #eef3fc; color: #1877f2; border: 1px solid #d4e2fb; }
.dir-card-link.tel { background: #f0f4f4; color: #4b5563; border: 1px solid #d1d9d9; }
.dir-card-logo { width: 70px; height: 70px; object-fit: contain; border-radius: 10px; flex-shrink: 0; }
.dir-card-header { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.dir-card-header-text { flex: 1; min-width: 0; }
.dir-card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (min-width: 640px) {
  .dir-form { max-width: 560px; }
}

/* ===== Web portfolio ===== */
.web-portfolio {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 20px 0;
}
.web-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 20px;
  transition: border-color .15s, transform .1s, box-shadow .15s;
  color: inherit;
}
.web-card:hover {
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.web-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.web-card-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}
.web-card-banner {
  position: relative;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.web-card-banner-img {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}
.web-card-banner .web-card-arrow {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #fff;
  opacity: 0.6;
}
.web-card:hover .web-card-banner .web-card-arrow {
  opacity: 1;
}
.web-card-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3fa;
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 800;
  border-radius: 8px;
}
.web-card-arrow {
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 800;
  opacity: 0.4;
  transition: opacity .15s, transform .15s;
}
.web-card:hover .web-card-arrow {
  opacity: 0.8;
  transform: translateX(3px);
}
.web-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.web-card-desc {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .web-portfolio { grid-template-columns: repeat(3, 1fr); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .rate-dot { animation: none; }
}
