/* ── RESET ── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  --bg: #edf0f5;
  --navy: #0c1a2e;
  --navy-card: #132035;
  --navy-border: #1e3050;
  --teal: #4a9db5;
  --teal-light: #7ec8d8;
  --text-dark: #0f2340;
  --text-mid: #3d567a;
  --text-muted: #7a93b0;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "DM Sans", sans-serif;
  --h-pad: 20px;
  --radius-card: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

/* ── NAV ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--h-pad);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(15,35,64,.06);
}
.logo-block { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; }
.logo-name { font-family: var(--sans); font-weight: 500; font-size: 17px; color: var(--teal); letter-spacing: .02em; }
.logo-sub { font-family: var(--sans); font-weight: 300; font-size: 8px; letter-spacing: .18em; color: var(--text-mid); text-transform: uppercase; }
.nav-links { display: none; gap: 36px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 16px; font-weight: 400; color: var(--text-dark); transition: color .2s; }
.nav-links a:hover { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-primary {
  background: var(--navy); color: var(--white);
  border: none; border-radius: 100px; padding: 10px 20px;
  font: 500 13px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #1a3050; transform: translateY(-1px); }

.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; height: 1.5px; background: var(--text-dark); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
  display: none; flex-direction: column; background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); position: fixed; top: 57px; left: 0; right: 0; z-index: 99;
  border-bottom: 1px solid rgba(15,35,64,.08); padding: 8px 0 16px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  text-decoration: none; font-size: 16px; color: var(--text-dark);
  padding: 14px var(--h-pad); border-bottom: 1px solid rgba(15,35,64,.05);
}
.mobile-drawer a:last-child { border-bottom: none; }
.mobile-drawer a:hover { color: var(--teal); background: rgba(74,157,181,.04); }

/* ── HERO ── */
.hero { padding: 58px var(--h-pad) 48px; display: grid; grid-template-columns: 1fr; gap: 24px; }
.hero-right { display: flex; flex-direction: column; gap: 24px; }
.hero-headline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 6vw, 58px); line-height: 1.12;
  margin-top: -18px; color: var(--text-dark); letter-spacing: -.01em;
  text-align: left; text-indent: 0;
}
.hero-headline em { font-style: italic; font-weight: 400; color: var(--text-mid); }
.hero-desc { font-size: 16px; line-height: 1.7; color: var(--text-mid); width: 100%; }
.hero-desc strong { color: var(--text-dark); font-weight: 500; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-hero-primary, .btn-hero-outline {
  border-radius: 100px; padding: 14px 28px; font: 500 14px/1 var(--sans);
  cursor: pointer; text-align: center; width: 100%;
  transition: background .2s, transform .15s, border-color .2s;
}
.btn-hero-primary { background: var(--navy); color: #fff; border: none; }
.btn-hero-primary:hover { background: #1a3050; transform: translateY(-1px); }
.btn-hero-outline { background: transparent; color: var(--navy); border: 1px solid rgba(12,26,46,.35); font-weight: 400; }
.btn-hero-outline:hover { background: rgba(12,26,46,.05); border-color: rgba(12,26,46,.6); }

/* ── VIDEO ── */
.video-section { padding: 28px var(--h-pad) 40px; }
.video-card {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  min-height: 260px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 60px -30px rgba(15,35,64,.18);
}
.video-card > img { position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; width: calc(100% + 4px); height: calc(100% + 4px); object-fit: cover; object-position: center center; z-index: 0; display: block; transform: none !important; }
.video-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(30,67,102,.45) 0%, transparent 40%, transparent 65%, rgba(12,26,46,.35) 100%);
}
.video-btn {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15); color: #fff;
  border-radius: 100px; padding: 9px 16px; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; gap: 7px; z-index: 2; transition: background .2s;
}
.video-btn:hover { background: rgba(255,255,255,.2); }
.video-btn svg { width: 14px; height: 14px; fill: #fff; }

/* ── QUOTE ── */
.quote-section { background: var(--bg); padding: 40px var(--h-pad) 60px; text-align: center; }
.quote-mark { font-size: 48px; color: var(--text-muted); opacity: .4; font-family: Georgia, serif; line-height: 1; margin-bottom: 20px; }
.quote-text { font-family: var(--serif); font-size: clamp(15px, 3.2vw, 22px); font-weight: 400; line-height: 1.6; color: var(--text-dark); max-width: 620px; margin: 0 auto 28px; }
.quote-source { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }

/* ── SERVICES ── */
.services-section {
  background: var(--navy); padding: 60px var(--h-pad);
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
.services-label { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 20px; }
.services-heading { font-family: var(--serif); font-size: clamp(28px,6vw,52px); font-weight: 400; color: #fff; line-height: 1.15; }
.services-heading em { font-style: italic; color: var(--teal-light); }
.services-right { display: flex; flex-direction: column; gap: 32px; }
.service-category-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 14px; }
.service-card {
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: 14px; padding: 20px 22px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: rgba(74,157,181,.4); transform: translateY(-2px); }
.service-card + .service-card { margin-top: 14px; }
.service-card-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.service-name { font-family: var(--serif); font-size: 22px; font-weight: 500; color: #fff; }
.service-desc { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.8); }
.price-pill {
  flex-shrink: 0;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--teal-light); background: rgba(74,157,181,.14);
  border: 1px solid rgba(74,157,181,.28); border-radius: 100px;
  padding: 5px 12px; white-space: nowrap;
}
.services-right > div { padding-top: 8px; }
.services-right > div + div { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.06); }

/* ── NOSOTROS ── */
.nosotros-section { background: var(--navy); padding: 60px var(--h-pad); }
.nosotros-label { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 20px; }
.nosotros-heading { font-family: var(--serif); font-size: clamp(26px,6vw,48px); font-weight: 400; color: #fff; line-height: 1.2; max-width: 620px; margin-bottom: 36px; }
.nosotros-heading em { font-style: italic; color: var(--teal-light); }
.doctors-grid { display: grid; width: 100%; grid-template-columns: 1fr; gap: 20px; max-width: 520px; margin: 0 auto; }
.doctor-card { background: var(--navy-card); border: 1px solid var(--navy-border); border-radius: 20px; overflow: hidden; transition: border-color .3s, transform .3s; }
.doctor-card:hover { border-color: rgba(74,157,181,.45); transform: translateY(-4px); }
.doctor-photo-placeholder {
  width: 100%; aspect-ratio: 3/4; max-height: 480px;
  background: linear-gradient(145deg,#0e2a3f,#163a55 55%,#0b2032);
  position: relative; overflow: hidden;
}
.doctor-photo-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-info { padding: 24px 24px 28px; }
.doctor-specialty-tag {
  display: inline-block; font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--teal-light); background: rgba(74,157,181,.1); border: 1px solid rgba(74,157,181,.2);
  border-radius: 100px; padding: 4px 12px; margin-bottom: 16px;
}
.doctor-name { font-family: var(--serif); font-size: 24px; font-weight: 500; color: #fff; margin-bottom: 18px; line-height: 1.2; }
.doctor-divider { width: 32px; height: 1px; background: rgba(74,157,181,.4); margin-bottom: 18px; }
.doctor-credentials { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.doctor-credentials li { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.8); padding-left: 16px; position: relative; }
.doctor-credentials li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 1px; background: rgba(74,157,181,.5); }

/* ── CTA ── */
.cta-section { background: var(--bg); padding: 60px var(--h-pad); }
.cta-card { border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 50px 80px -40px rgba(15,35,64,.25); }
.cta-bg-art { position: relative; width: 100%; height: 220px; flex-shrink: 0; overflow: hidden; background: var(--navy); }
.cta-bg-art img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.cta-bg-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(10,28,48,.7) 70%, rgba(10,28,48,.95)),
    linear-gradient(270deg, transparent 40%, rgba(10,28,48,.55) 80%, rgba(10,28,48,.85));
}
.cta-content {
  background: linear-gradient(160deg,#0d2a3e,#1a4a60 60%,#071d2e);
  padding: 36px 28px 40px;
}
.cta-heading { font-family: var(--serif); font-size: clamp(26px,7vw,44px); font-weight: 400; color: #fff; line-height: 1.2; margin-bottom: 6px; }
.cta-heading em { font-style: italic; font-weight: 300; display: block; opacity: .9; }
.cta-sub { margin-top: 14px; font-size: 16px; line-height: 1.65; color: #fff; margin-bottom: 28px; font-weight: 500; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-cta-primary, .btn-cta-outline {
  border-radius: 100px; padding: 14px 28px; font: 500 14px/1 var(--sans); cursor: pointer; text-align: center;
  transition: background .2s, transform .15s, border-color .2s;
}
.btn-cta-primary { background: #fff; color: var(--navy); border: none; }
.btn-cta-primary:hover { background: #e8edf5; transform: translateY(-1px); }
.btn-cta-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); font-weight: 400; }
.btn-cta-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }

/* ── FOOTER ── */
footer {
  background: var(--bg); border-top: 1px solid rgba(15,35,64,.1); padding: 28px var(--h-pad);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo .logo-name { color: var(--teal); font-size: 17px; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding-top: 2px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; list-style: none; }
.footer-nav a { text-decoration: none; font-size: 16px; color: var(--text-mid); transition: color .2s; }
.footer-nav a:hover { color: var(--teal); }
.footer-copy { font-size: 16px; color: var(--text-muted); }

/* Cursor dot (desktop only) */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background: var(--teal); border-radius: 50%; pointer-events: none;
  z-index: 9999; mix-blend-mode: multiply; opacity: 0;
  transition: width .25s, height .25s, opacity .25s, background .25s, border .25s, box-shadow .25s;
  transform: translate(-50%,-50%);
}
@media (hover: hover) and (pointer: fine) { .cursor-dot { opacity: .85; } }

/* Reveal masks for GSAP */
[data-anim] { will-change: transform, opacity; }

/* ── TABLET ≥ 768px ── */
@media (min-width: 768px) {
  :root { --h-pad: 5vw; --radius-card: 20px; }
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-drawer { display: none !important; }
  .hero { padding-top: 68px; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: stretch; }
  .hero-right { padding-top: 0; }
  .hero-actions { margin-top: auto; padding-top: 20px; flex-direction: row; gap: 14px; }
  .btn-hero-primary, .btn-hero-outline { width: auto; }
  .video-section { padding: 40px var(--h-pad) 60px; }
  .video-card { min-height: 380px; }
  .video-btn { top: 24px; right: 24px; padding: 10px 18px; font-size: 13px; }
  .video-btn svg { width: 16px; height: 16px; }
  .quote-section { padding: 50px var(--h-pad) 80px; }
  .services-section { padding: 80px var(--h-pad); grid-template-columns: 1fr 1.4fr; gap: 60px; }
  .services-label { margin-bottom: 28px; }
  .nosotros-section { padding: 80px var(--h-pad) 70px; }
  .nosotros-heading { margin-bottom: 50px; }
  .doctors-grid { grid-template-columns: 1fr 1fr; width: 100%; max-width: 960px; margin: 0 auto; gap: 28px; }
  .doctor-info { padding: 28px 28px 32px; }
  .doctor-name { font-size: 26px; }
  .cta-bg-art { height: 300px; }
  .cta-content { padding: 44px 48px 48px; }
  .cta-actions { flex-direction: row; gap: 12px; }
  .btn-cta-primary, .btn-cta-outline { text-align: left; }
  footer { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-nav { flex-wrap: nowrap; gap: 28px; justify-content: flex-start; }
}

/* ── DESKTOP ≥ 1024px ── */
@media (min-width: 1024px) {
  :root { --h-pad: max(17.5vw, 40px); }
  .hero { gap: 80px; }
  .video-card { min-height: 480px; max-height: 550px; }
  .doctors-grid { width: 100%; max-width: 980px; margin: 0 auto; }
  .doctor-info { padding: 30px 32px 34px; }
  .cta-bg-art { height: 360px; }
  .cta-content { padding: 48px 60px 56px; }
  footer { padding: 32px var(--h-pad); }
}

/* ── WIDE ≥ 1440px ── */
@media (min-width: 1440px) {
  .cta-card { flex-direction: row; align-items: stretch; min-height: 420px; }
  .cta-content { order: 1; flex: 1; padding: 60px 56px 60px 60px; background: #0d2a3e; display: flex; flex-direction: column; justify-content: center; }
  .cta-bg-art { order: 2; width: 55%; height: auto; flex-shrink: 0; }
  .cta-bg-art::after {
    background: linear-gradient(90deg,
      #0d2a3e 0%,
      rgba(13,42,62,.97) 8%,
      rgba(13,42,62,.75) 28%,
      rgba(13,42,62,.2) 55%,
      transparent 75%
    );
  }
  .cta-sub { max-width: 360px; }
}