/* Dr. Benjamin Ramos — Professional medical site */

:root {
  --navy:        #0a1f3d;
  --blue:        #14325c;
  --blue-mid:    #1e4a7a;
  --blue-soft:   #e8eef5;
  --gold:        #a67c2e;
  --gold-soft:   #c9a962;
  --white:       #ffffff;
  --surface:     #f4f6f9;
  --text:        #1a2744;
  --text-muted:  #5c6b82;
  --border:      rgba(20, 50, 92, 0.1);
  --whatsapp:    #128c7e;
  --whatsapp-h:  #0e7368;

  --font-serif:  'Source Serif 4', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --header-h:    76px;
  --radius:      12px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(10, 31, 61, 0.06);
  --shadow:      0 8px 30px rgba(10, 31, 61, 0.08);
  --shadow-lg:   0 20px 50px rgba(10, 31, 61, 0.12);
  --ease:        0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Typography utilities */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.eyebrow--dark { color: var(--gold); }
.eyebrow--light { color: var(--gold-soft); }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-heading--light { color: var(--white); }

.prose {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--ease);
}

.header--scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.brand__role {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--ease), background var(--ease);
}

.nav__link:hover {
  color: var(--navy);
  background: var(--blue-soft);
}

.nav__link--active:not(.nav__link--cta) {
  color: var(--navy);
  background: var(--blue-soft);
}

.nav__link--cta {
  margin-left: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.nav__link--cta:hover {
  background: var(--blue);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 0;
  background: var(--navy);
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(30, 74, 122, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(166, 124, 46, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 72px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero__highlights {
  margin-bottom: 36px;
}

.hero__highlights li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.hero__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--gold-soft);
  border-radius: 50%;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__portrait {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero__card {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 260px;
  border-top: 3px solid var(--gold);
}

.hero__card-logo {
  height: 36px;
  width: auto;
  margin: 0 auto 8px;
}

.hero__card-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Trust bar */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 40px;
}

.trust-bar__item {
  text-align: center;
}

.trust-bar__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.trust-bar__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.trust-bar__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-h);
  border-color: var(--whatsapp-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--compact {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.85rem;
}

.btn--large {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn--large svg { width: 22px; height: 22px; }

/* Sections */
.section {
  padding: 96px 0;
}

.section--muted {
  background: var(--surface);
}

.section--dark {
  background: var(--navy);
}

.section--cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  padding: 80px 0;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-intro--light { margin-left: auto; margin-right: auto; text-align: center; }

.section-intro__text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 12px;
}

.section-intro__text--light {
  color: rgba(255, 255, 255, 0.75);
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.split__quote {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(10, 31, 61, 0.92) 0%, rgba(10, 31, 61, 0.75) 100%);
  border-top: 2px solid var(--gold);
}

.split__quote p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.split__quote strong { color: var(--gold-soft); }

.pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.pillar {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 16px;
}

.pillar__num {
  grid-row: span 2;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.pillar__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.pillar__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.link-external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-mid);
  transition: color var(--ease), gap var(--ease);
}

.link-external svg {
  width: 16px;
  height: 16px;
  transition: transform var(--ease);
}

.link-external:hover {
  color: var(--gold);
  gap: 12px;
}

.link-external:hover svg { transform: translateX(3px); }

/* Specialties */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.specialty {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.specialty:hover {
  border-color: rgba(166, 124, 46, 0.35);
  box-shadow: var(--shadow);
}

.specialty__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.specialty__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  border-radius: 10px;
  flex-shrink: 0;
}

.specialty__icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue-mid);
}

.specialty__head h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.specialty p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Procedures */
.procedure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.procedure-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.procedure-panel__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gold);
}

.procedure-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}

.procedure-list li:last-child { border-bottom: none; }

.procedure-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* Hospitals */
.hospital-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hospital {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.hospital__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hospital__top h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.hospital__badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(166, 124, 46, 0.12);
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.hospital address {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.hospital__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.hospital__channel {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin: -2px 0 4px;
}

/* CTA panel */
.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
}

.cta-panel__text {
  color: rgba(255, 255, 255, 0.8);
  margin: 16px 0 28px;
  max-width: 420px;
  font-size: 0.95rem;
}

.cta-panel__brand img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold-soft);
  opacity: 0.95;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 0 0 2px var(--gold-soft);
}

.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--ease);
}

.footer__nav a:hover { color: var(--gold-soft); }

.footer__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.footer__phone {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.footer__contact a:last-child {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact a:hover { color: var(--gold-soft); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__disclaimer {
  max-width: 360px;
  text-align: right;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(18, 140, 126, 0.4);
  transition: transform var(--ease), box-shadow var(--ease);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.45);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--delay   { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .hospital-grid { grid-template-columns: 1fr 1fr; }
  .hospital-grid .hospital:last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .brand__text { display: none; }
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .nav__link--cta { margin-left: 0; margin-top: 8px; }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 100px;
  }

  .hero__lead,
  .hero__highlights { margin-left: auto; margin-right: auto; }

  .hero__highlights { text-align: left; max-width: 320px; }

  .hero__actions { justify-content: center; }

  .trust-bar__divider { display: none; }
  .trust-bar__inner { flex-direction: column; gap: 16px; }

  .split { grid-template-columns: 1fr; gap: 40px; }

  .specialty-grid,
  .procedure-grid,
  .hospital-grid {
    grid-template-columns: 1fr;
  }

  .hospital-grid .hospital:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 28px;
  }

  .cta-panel__text { margin-left: auto; margin-right: auto; }

  .cta-panel__brand { order: -1; }
  .cta-panel__brand img { margin: 0 auto; }

  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__nav { align-items: center; }
  .footer__legal { flex-direction: column; text-align: center; }
  .footer__disclaimer { text-align: center; max-width: none; }

  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
}
