/* ==========================================================
   RX DI TORO — Radiografía digital a domicilio
   Hoja de estilos única · Diseño responsive
   ========================================================== */

:root {
  --ink: #071620;
  --ink-2: #0d2433;
  --paper: #f6f9fa;
  --white: #ffffff;
  --brand: #00a89b;
  --brand-dark: #007e75;
  --brand-soft: #e2f5f3;
  --wa: #25d366;
  --star: #ffb703;
  --line: #dde7ea;
  --muted: #5b7481;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -14px rgba(7, 22, 32, 0.35);
  --shadow-lg: 0 24px 60px -26px rgba(7, 22, 32, 0.5);
  --max: 1160px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; height: auto; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--ink);
  color: #cfe6e3;
  font-size: .85rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}
.topbar a { color: #fff; font-weight: 700; }
.topbar strong { color: var(--brand); }

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 210px;
  height: auto;
  background: var(--ink);
  padding: 9px 14px;
  border-radius: 12px;
}
.brand:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.nav-toggle .bars { display: inline-block; width: 18px; }
.nav-toggle .bars span,
.nav-toggle .bars span::before,
.nav-toggle .bars span::after {
  display: block; height: 2px; width: 18px; background: var(--ink); border-radius: 2px;
}
.nav-toggle .bars span { position: relative; }
.nav-toggle .bars span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle .bars span::after { content: ""; position: absolute; top: 6px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-2);
  font-weight: 700;
  font-size: .93rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { background: var(--brand-soft); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #06301a; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .9); }
.btn-wa:hover { background: #1ec25b; }
.btn-primary { background: var(--brand); color: #04231f; box-shadow: 0 10px 24px -12px rgba(0, 168, 155, .95); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-star { background: var(--star); color: #3b2600; box-shadow: 0 10px 24px -12px rgba(255, 183, 3, .95); }
.btn-star:hover { background: #ffc93c; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(115deg, #04121b 0%, #0b2b38 55%, #0a3b3a 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(0, 168, 155, .35), transparent 65%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 46px;
  align-items: center;
  padding-top: 68px;
  padding-bottom: 68px;
}
.hero h1 { color: #fff; }
.hero h1 span { color: var(--brand); display: block; }
.hero p.lead { font-size: 1.12rem; color: #d3e4e6; max-width: 46ch; }
.hero .eyebrow { background: rgba(0, 168, 155, .18); color: #7fe6dc; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .12);
}

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: -26px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  font-weight: 800;
  line-height: 1.15;
  font-size: .95rem;
}
.hero-badge b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--brand-dark); }

/* ---------- Franja de confianza ---------- */
.trust {
  background: var(--ink-2);
  color: #cde3e6;
  font-size: .95rem;
}
.trust ul {
  list-style: none;
  margin: 0; padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 26px;
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
}
.trust li { font-weight: 700; }
.trust li b { color: var(--brand); }

/* ---------- Secciones ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

ul.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; }
ul.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 16px; height: 9px;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- Reseñas ---------- */
.reviews {
  background: linear-gradient(140deg, #04121b, #0c3b3a);
  color: #fff;
}
.reviews h2 { color: #fff; }
.reviews .section-head p { color: #cfe3e5; }
.stars { font-size: 1.7rem; letter-spacing: 4px; color: var(--star); }
.review-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  padding: 34px;
}
.review-panel .big {
  font-family: var(--font-head);
  font-size: 4.2rem;
  line-height: 1;
  color: var(--star);
}
.review-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.review-note { font-size: .9rem; color: #a9c6c9; margin: 0; }

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.gallery button {
  padding: 0; border: 0; background: #08151d;
  border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1 / 1;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
  opacity: .92;
}
.gallery button:hover img { transform: scale(1.06); opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 12, 17, .94);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: 10px; }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
}
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption {
  position: absolute; bottom: 18px; left: 0; right: 0;
  text-align: center; color: #cfe3e5; font-size: .9rem;
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico {
  flex: 0 0 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list span.label { display: block; font-size: .78rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.contact-list a { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.contact-list a:hover { color: var(--brand-dark); }

form.quick label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
form.quick .field { margin-bottom: 14px; }
form.quick input, form.quick select, form.quick textarea {
  width: 100%; font: inherit; font-size: .97rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
form.quick input:focus, form.quick select:focus, form.quick textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
form.quick .btn { width: 100%; }
form.quick .hint { font-size: .82rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* ---------- Franja CTA ---------- */
.cta-strip {
  background: var(--brand);
  color: #04231f;
  text-align: center;
}
.cta-strip h2 { color: #04231f; margin-bottom: .3em; }
.cta-strip p { max-width: 60ch; margin: 0 auto 22px; font-weight: 600; }

/* ---------- Instituciones / logos ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: center; }
.logos img { max-height: 92px; width: auto; filter: grayscale(1); opacity: .8; }
.logos img:hover { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9d2d6; padding: 54px 0 20px; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.15rem; }
.site-footer a { color: #dff1f0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.site-footer .logo-foot { width: 180px; background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 16px; }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding-top: 18px; font-size: .82rem; color: #86a5aa; text-align: center; }
.legal a { color: #a9c6c9; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  background: var(--wa);
  color: #06301a;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 14px 34px -12px rgba(6, 48, 26, .8);
}
.wa-float:hover { text-decoration: none; background: #1ec25b; }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Página interna: encabezado ---------- */
.page-hero {
  background: linear-gradient(120deg, #04121b, #0c3b3a);
  color: #fff;
  padding: 58px 0;
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #cfe3e5; max-width: 62ch; margin: 0; }
.crumbs { font-size: .84rem; color: #9dc0c3; margin-bottom: 12px; }
.crumbs a { color: #9dc0c3; }

.prose h2 { margin-top: 1.2em; }
.doc-card { text-align: center; }
.doc-card img { border-radius: var(--radius); margin: 0 auto 16px; }
.doc-card h3 { margin-bottom: .2em; }
.doc-card .meta { font-size: .9rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 46px; padding-bottom: 56px; }
  .hero-figure { order: 2; margin-top: 26px; }
  .hero-copy { order: 1; }
  .hero-badge {
    position: static;
    display: inline-block;
    margin-top: -30px;
    margin-left: 12px;
  }

  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .review-panel { grid-template-columns: 1fr; gap: 26px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 12px; font-size: 1rem; }
  .nav-links .btn { margin-top: 8px; }
  .site-header .wrap { position: relative; }
  .brand img { width: 138px; }
  .grid-3, .grid-4, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
  .hero-cta .btn { width: 100%; }
}
