/* DoctorsPortugal — estilos del sitio */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1E4D8C;
  --navy: #0F2A4A;
  --navy-2: #16365C;
  --sky: #E8F0FA;
  --sky-2: #F3F7FC;
  --mist: #F7F9FC;
  --line: #DCE4EE;
  --text: #0F2A4A;
  --body: #3A4554;
  --muted: #55606E;
  --amber: #F2B33D;
  --red-bg: #FDECEC;
  --red: #6B1A1A;
  --focus: #8DB4E8;
  --radius: 12px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--blue); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.logo svg { width: 14px; height: 14px; margin: 0 5px; fill: currentColor; flex: 0 0 auto; }
.logo--light { color: #FFFFFF; font-size: 18px; }
.logo--light svg { width: 12px; height: 12px; margin: 0 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font: inherit; font-size: 17px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #FFFFFF; font-weight: 800; }
.btn--primary:hover { background: var(--navy); color: #FFFFFF; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #FFFFFF; }
.btn--ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--blue); background: var(--sky-2); color: var(--navy); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { background: #B8C3D1; border-color: #B8C3D1; color: #FFFFFF; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .btn, .card-link { transition: none; } .btn:active { transform: none; } }

/* ---------- Cabecera ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--navy); text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
@media (max-width: 720px) { .site-nav { display: none; } }
.show-sm { display: none; }
@media (max-width: 520px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .logo { font-size: 18px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #FFFFFF; }
.h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.lead { font-size: 19px; line-height: 1.55; color: var(--body); max-width: 560px; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--body); list-style: none; padding: 0; margin: 0; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.service-box { flex: 1 1 340px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(15,42,74,.08); }
.service-box__title { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-link { text-decoration: none; color: var(--navy); border: 2px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.card-link--featured { border-color: var(--blue); background: var(--sky-2); }
.card-link:hover { color: var(--navy); border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,42,74,.12); }
@media (prefers-reduced-motion: reduce) { .card-link:hover { transform: none; } }
.card-link__row { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 800; }
.card-link__row span:last-child { color: var(--blue); }
.card-link__sub { font-size: 14px; line-height: 1.45; color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 10px; background: var(--red-bg); font-size: 14px; line-height: 1.45; color: var(--red); }

/* Franja de confianza */
.trust { background: var(--sky); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; padding-top: 26px; padding-bottom: 26px; font-size: 15px; font-weight: 600; line-height: 1.4; list-style: none; margin-top: 0; margin-bottom: 0; }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 3px solid var(--blue); }
.steps .num { font-size: 15px; font-weight: 800; color: var(--blue); }
.steps h3 { font-size: 20px; font-weight: 800; }
.steps p { font-size: 16px; line-height: 1.55; color: var(--body); }

/* Qué tratamos */
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split__side { flex: 1 1 300px; min-width: 0; align-self: flex-start; }
.treat { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 24px; list-style: none; padding: 0; margin: 0; font-size: 16px; line-height: 1.45; }
.treat li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.emergency { border-radius: 16px; background: var(--red-bg); padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--red); }
.emergency h3 { font-size: 18px; font-weight: 800; }
.emergency p { font-size: 16px; line-height: 1.55; }

/* Precios */
.prices { display: flex; flex-wrap: wrap; gap: 48px; }
.prices > div { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.price-list { border-top: 2px solid var(--navy); margin: 0; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-row dt { display: flex; flex-direction: column; gap: 4px; font-size: 18px; font-weight: 800; }
.price-row dt span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-row dd { margin: 0; font-size: 26px; font-weight: 800; color: var(--blue); }
.note-box { border-radius: 16px; background: var(--sky); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.note-box h3 { font-size: 22px; font-weight: 800; }
.note-box p { font-size: 16px; line-height: 1.6; color: var(--body); }

/* Reseñas */
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.reviews .eyebrow { color: var(--focus); }
.reviews__score { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #D5E1F0; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--amber); }
.carousel { display: flex; align-items: center; gap: 16px; }
.carousel figure { flex: 1 1 auto; min-width: 0; margin: 0; background: var(--navy-2); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 18px; min-height: 200px; }
.carousel blockquote { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.carousel figcaption { font-size: 15px; color: #D5E1F0; }
.carousel figcaption strong { color: #FFFFFF; }
.arrow { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 24px; border: 1px solid #3B5878; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.arrow:hover { background: rgba(255,255,255,.12); border-color: var(--focus); }
.arrow svg { width: 20px; height: 20px; stroke: #FFFFFF; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; justify-content: center; gap: 4px; }
.dots button { width: 32px; height: 32px; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dots span { display: block; width: 8px; height: 8px; border-radius: 4px; background: #3B5878; transition: width .2s ease; }
.dots button[aria-current="true"] span { width: 24px; background: #FFFFFF; }
.reviews a { color: var(--focus); }
@media (max-width: 600px) { .carousel .arrow { display: none; } .carousel figure { padding: 24px; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-size: 18px; font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--body); }

/* Pie */
.site-footer { background: var(--navy); color: #D5E1F0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; font-size: 14px; line-height: 1.6; }
.site-footer .col { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer .col--wide { flex-basis: 320px; }
.site-footer .col-title { color: #FFFFFF; font-weight: 700; }
.site-footer a { color: #D5E1F0; }
.site-footer a:hover { color: #FFFFFF; }

/* Páginas de texto (privacidad, términos, gracias) */
.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; display: flex; flex-direction: column; gap: 18px; }
.page h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.page h2 { font-size: 22px; font-weight: 800; margin-top: 12px; }
.page p, .page li { font-size: 16px; line-height: 1.65; color: var(--body); }
.page .draft { padding: 14px 16px; border-radius: 10px; background: #FFF6E0; color: #5C4200; font-size: 15px; }

/* ---------- Reserva ---------- */
.book { max-width: 600px; margin: 0 auto; padding: 24px 20px 120px; }
.book__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.progress { height: 6px; border-radius: 3px; background: var(--sky); overflow: hidden; margin-bottom: 8px; }
.progress span { display: block; height: 100%; width: 20%; background: var(--blue); border-radius: 3px; transition: width .25s ease; }
.step-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.book fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step[hidden] { display: none; }
.step h1 { font-size: clamp(26px, 6vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.group { display: flex; flex-direction: column; gap: 10px; }
.group[hidden] { display: none; }
.group-title { font-size: 15px; font-weight: 800; color: var(--navy); }
.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #FFFFFF; transition: border-color .15s ease, background-color .15s ease; }
.choice:hover { border-color: #9DB5D6; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--sky-2); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice__row { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 800; }
.choice__row .price { color: var(--blue); }
.choice__sub { font-size: 14px; color: var(--muted); line-height: 1.4; }
.choice--sm { padding: 12px 10px; align-items: center; text-align: center; font-weight: 700; font-size: 15px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slots .choice { padding: 10px 6px; align-items: center; font-weight: 700; font-size: 15px; border-radius: 10px; }
.slots-empty { font-size: 15px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field[hidden] { display: none; }
.field label, .field .label { font-size: 15px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text);
  min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: #FFFFFF; width: 100%;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field input:user-invalid, .field select:user-invalid { border-color: #C0392B; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; } .choices--3 { grid-template-columns: 1fr 1fr 1fr; } }
.info { padding: 12px 14px; border-radius: 10px; background: var(--sky); font-size: 14px; line-height: 1.5; color: var(--body); }
.info--warn { background: #FFF6E0; color: #5C4200; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--body); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.summary { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin: 0; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.summary .total dt, .summary .total dd { font-size: 18px; font-weight: 800; color: var(--navy); }
.gdpr { font-size: 13px; line-height: 1.55; color: var(--muted); }
.error { padding: 12px 14px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-size: 15px; }
.error[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.book-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.book-bar__inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.book-bar__price { flex: 1 1 auto; font-size: 14px; color: var(--muted); }
.book-bar__price strong { display: block; font-size: 20px; color: var(--navy); }
.book-bar .btn { flex: 0 0 auto; min-width: 140px; }
.book-bar .btn--ghost { min-width: 0; padding: 0 16px; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Carrusel de aseguradoras */
.insurers { max-width: var(--wrap); margin: 48px auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 18px; }
.insurers__title { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 40s linear infinite; }
.marquee__track li { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: #6B7788; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 32px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 16px 40px; }
  .marquee__track li[aria-hidden="true"] { display: none; }
}
@media (max-width: 600px) { .marquee__track { gap: 40px; animation-duration: 30s; } .marquee__track li { font-size: 18px; } @keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } } }
.insurers__note { font-size: 13px; color: var(--muted); text-align: center; }
.phone-row { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 8px; }
.phone-row select, .phone-row input { font: inherit; font-size: 16px; color: var(--text); min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: #FFFFFF; width: 100%; }
.phone-row select:focus, .phone-row input:focus { border-color: var(--blue); outline: none; }
.field .hint + input, .field label + .hint { margin-top: -2px; }

/* Botón WhatsApp: contorno verde */
.btn--wa { border-color: #25D366; color: var(--navy); background: transparent; }
.btn--wa svg { color: #1DA851; width: 20px; height: 20px; }
.btn--wa:hover { background: #EAFBF1; border-color: #1DA851; color: var(--navy); }

/* Guía / artículos */
.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; display: flex; flex-direction: column; gap: 16px; }
.article .eyebrow a { color: inherit; text-decoration: none; }
.article h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.article__lead { font-size: 19px; line-height: 1.6; color: var(--body); }
.article h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin-top: 18px; }
.article p, .article li { font-size: 17px; line-height: 1.7; color: var(--body); }
.article ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article__disclosure { font-size: 14px !important; color: var(--muted) !important; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.cta-box { margin: 12px 0; border-radius: 16px; background: var(--sky); padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-box__title { font-size: 20px; font-weight: 800; color: var(--navy) !important; }
.cta-box__note { font-size: 14px !important; color: var(--red) !important; }
.guide-index { max-width: 860px; }
.guide-card .card-link__row span { color: var(--navy) !important; }
@media (max-width: 400px) {
  .site-header .wrap { gap: 8px; }
  .site-header .logo { font-size: 15px; }
  .site-header .logo svg { width: 11px; height: 11px; margin: 0 3px; }
  .site-header .btn--sm { padding: 0 10px; font-size: 14px; }
}
.cta-box .btn { white-space: normal; text-align: center; max-width: 100%; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 520px) { .cta-box .btn { width: 100%; } }
@media (max-width: 360px) { .book__top .logo { font-size: 14px; } .book__top .btn--sm { padding: 0 10px; } }
