/* =========================
   Rovg — Sitio responsivo
   ========================= */

:root {
  --bg: #fffaf6;
  --surface: #ffffff;
  --peach-50: #fff4ec;
  --peach-100: #fbe5d6;
  --peach-200: #f4d2bd;
  --peach-300: #eebca0;
  --peach-500: #bf7958;
  --brown-700: #60483b;
  --ink: #2e2926;
  --muted: #746a64;
  --line: rgba(96, 72, 59, .14);
  --shadow: 0 20px 60px rgba(84, 57, 42, .11);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(244, 210, 189, .34), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 246, .90);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(96, 72, 59, .08);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  width: 166px;
  height: 58px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(84, 57, 42, .10);
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-weight: 700;
  font-size: .94rem;
  color: var(--brown-700);
  transition: color .2s ease, transform .2s ease;
}

.main-nav a:hover {
  color: var(--peach-500);
}

.main-nav .nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--surface);
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(84, 57, 42, .10);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: .22;
}

.hero::before {
  width: 310px;
  height: 430px;
  left: -120px;
  bottom: -140px;
  border: 1px solid rgba(96, 72, 59, .22);
  border-radius: 48% 52% 64% 36% / 52% 38% 62% 48%;
  transform: rotate(28deg);
}

.hero::after {
  width: 220px;
  height: 300px;
  right: -80px;
  top: 46px;
  border: 1px solid rgba(96, 72, 59, .18);
  border-radius: 62% 38% 44% 56% / 44% 52% 48% 56%;
  transform: rotate(-22deg);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-glow-one {
  width: 390px;
  height: 390px;
  background: rgba(244, 210, 189, .33);
  right: 9%;
  top: 4%;
}

.hero-glow-two {
  width: 250px;
  height: 250px;
  background: rgba(255, 232, 215, .52);
  left: 8%;
  bottom: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--peach-500);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.patients-copy h2,
.coverage-card h2,
.schedule-card h2,
.summary-card h2,
.contact-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.9rem, 6vw, 5.65rem);
}

.hero-name {
  margin: 28px 0 0;
  font-weight: 800;
  font-size: 1.08rem;
}

.hero-role {
  margin: 3px 0 0;
  color: var(--peach-500);
  font-weight: 700;
}

.hero-text {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 26px rgba(46, 41, 38, .20);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(46, 41, 38, .25);
}

.btn-secondary {
  color: var(--brown-700);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.64);
}

.btn-light {
  color: var(--ink);
  background: #fff;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 510px;
  margin-top: 34px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.60);
}

.mini-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--peach-100);
  color: var(--brown-700);
  font-weight: 900;
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card small {
  color: var(--muted);
  margin-top: 1px;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.logo-panel {
  padding: 15px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.logo-panel img {
  width: 100%;
  aspect-ratio: 1080 / 587;
  object-fit: cover;
  border-radius: 24px;
}

.availability-badge {
  position: absolute;
  right: -18px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(84, 57, 42, .17);
  font-weight: 800;
  font-size: .92rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peach-500);
  box-shadow: 0 0 0 0 rgba(191,121,88,.35);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(191,121,88,.35); }
  70% { box-shadow: 0 0 0 10px rgba(191,121,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(191,121,88,0); }
}

/* Intro */
.intro {
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.section-heading h2,
.patients-copy h2,
.coverage-card h2,
.schedule-card h2,
.summary-card h2,
.contact-card h2 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
}

.section-heading.centered {
  max-width: 740px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.intro-copy > p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat {
  padding: 18px 16px;
  border-radius: var(--radius-sm);
  background: var(--peach-50);
  border: 1px solid var(--line);
}

.stat span {
  display: block;
  color: var(--peach-500);
  font-weight: 900;
  font-size: 1.15rem;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: .92rem;
}

/* Services */
.services {
  background:
    linear-gradient(180deg, var(--bg), var(--peach-50));
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 28px rgba(84, 57, 42, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(84, 57, 42, .11);
  border-color: rgba(191,121,88,.32);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--peach-100);
  color: var(--brown-700);
  font-size: 1.3rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 19px 0 8px;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.section-cta {
  margin-top: 34px;
  text-align: center;
}

/* Patients */
.patients {
  background: var(--ink);
  color: #fff;
}

.patients-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.patients-copy {
  position: sticky;
  top: 120px;
}

.patients-copy .eyebrow {
  color: var(--peach-300);
}

.patients-copy p:not(.eyebrow) {
  color: rgba(255,255,255,.68);
  max-width: 500px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--peach-300);
  font-weight: 800;
}

.patients-list {
  border-top: 1px solid rgba(255,255,255,.14);
}

.patient-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.patient-item span {
  color: var(--peach-300);
  font-weight: 900;
}

.patient-item strong {
  font-size: 1.08rem;
}

/* Care */
.care {
  background: #fff;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.care-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.care-home {
  background: linear-gradient(135deg, #fff8f3, #f5dccb);
}

.care-hospital {
  background: linear-gradient(135deg, #f6efe9, #e8d1c2);
}

.care-number {
  position: absolute;
  top: 22px;
  right: 25px;
  color: rgba(96,72,59,.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
}

.care-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.care-card p {
  max-width: 470px;
  margin: 9px 0 18px;
  color: var(--muted);
}

.care-card a {
  font-weight: 900;
}

/* Coverage */
.coverage {
  padding-top: 40px;
}

.coverage-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  align-items: center;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: var(--peach-100);
  border: 1px solid rgba(96,72,59,.10);
}

.coverage-icon {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 2rem;
  box-shadow: 0 10px 28px rgba(84,57,42,.10);
}

.coverage-card h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.coverage-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

/* Schedule */
.schedule {
  padding-top: 28px;
}

.schedule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 48px;
  color: #fff;
  background: var(--brown-700);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.schedule-copy .eyebrow {
  color: var(--peach-300);
}

.schedule-card h2 {
  max-width: 780px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.schedule-card p:last-child {
  margin-bottom: 0;
  color: rgba(255,255,255,.72);
}

/* Summary */
.summary {
  background: #fff;
}

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

.summary-card {
  padding: 38px;
  border-radius: var(--radius-lg);
  background: var(--peach-50);
  border: 1px solid var(--line);
}

.summary-card h2 {
  font-size: 2.4rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--brown-700);
  font-weight: 650;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--peach-200);
  color: var(--brown-700);
  font-size: .78rem;
  font-weight: 900;
}

/* Contact */
.contact {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.62), transparent 23rem),
    var(--peach-100);
}

.contact-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 44px;
  padding: 48px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-name {
  margin: 24px 0 0;
  font-weight: 900;
  font-size: 1.05rem;
}

.contact-card > div > p:not(.eyebrow):not(.contact-name) {
  margin: 2px 0 0;
  color: var(--muted);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted);
}

.contact-details a {
  font-weight: 900;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: #211e1c;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  align-items: center;
  padding: 56px 0;
}

.footer-brand {
  overflow: hidden;
  border-radius: 18px;
}

.footer-brand img {
  width: 100%;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: rgba(255,255,255,.72);
}

.footer-copy strong {
  color: #fff;
  font-size: 1.1rem;
}

.footer-copy a {
  color: var(--peach-300);
  font-weight: 800;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.48);
  font-size: .88rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #fff;
  background: #25211f;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(46,41,38,.25);
  font-size: .92rem;
}

.floating-whatsapp span {
  font-size: 1.15rem;
}

/* Reveal animation */
.reveal {
  opacity: 1;
  transform: none;
}

/* Las animaciones son una mejora opcional. El contenido permanece visible
   aunque JavaScript no cargue o esté desactivado. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pulse-dot {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 980px) {
  :root {
    --container: min(100% - 32px, 760px);
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    background: rgba(255,250,246,.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(.94) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .main-nav.open {
    transform: scaleY(1) translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 13px 12px;
  }

  .main-nav .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero-grid,
  .intro-grid,
  .patients-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 9vw, 4.8rem);
  }

  .hero-visual {
    max-width: 720px;
  }

  .intro-grid,
  .patients-layout {
    gap: 38px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .patients-copy {
    position: static;
  }

  .schedule-card,
  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --container: calc(100% - 28px);
  }

  .section {
    padding: 72px 0;
  }

  .nav-wrap {
    min-height: 72px;
  }

  .brand {
    width: 142px;
    height: 50px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.85rem);
  }

  .hero-highlights,
  .stat-row,
  .cards-grid,
  .care-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .section-cta .btn {
    width: 100%;
  }

  .availability-badge {
    position: static;
    width: max-content;
    max-width: 100%;
    margin: 14px auto 0;
  }

  .section-heading.centered {
    text-align: left;
    margin-bottom: 34px;
  }

  .service-card {
    min-height: 0;
  }

  .patient-item {
    grid-template-columns: 48px 1fr;
  }

  .care-card {
    min-height: 290px;
  }

  .coverage-card {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .coverage-icon {
    width: 64px;
    height: 64px;
  }

  .schedule-card,
  .summary-card,
  .contact-card {
    padding: 30px;
  }

  .contact-details {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand {
    width: 210px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }

  .floating-whatsapp b {
    display: none;
  }

  .floating-whatsapp {
    width: 54px;
    padding: 0;
    justify-content: center;
  }
}
