/* ============================================================
   BRAND — Dra. Deborah Estrella · Pneumologista
   Paleta: #f7f4f0 bg · #012d54 navy · #ff9800 orange · #0f4a81 blue
   ============================================================ */

:root {
  --bg:        #f7f4f0;
  --bg-alt:    #edead2;
  --bg-alt:    #eae6dd;
  --bg-card:   #ffffff;
  --navy:      #012d54;
  --blue:      #0f4a81;
  --orange:    #ff9800;
  --orange-dk: #e07b00;
  --orange-lt: #fff3e0;
  --text:      #3a3a3c;
  --muted:     #6b6b6e;
  --faint:     #9a9a9d;
  --border:    #e0dcd5;
  --border-lt: #edeae3;
  --whats:     #25d366;
  --shadow-sm: 0 2px 12px rgba(1,45,84,.06);
  --shadow:    0 4px 24px rgba(1,45,84,.09);
  --shadow-md: 0 12px 48px rgba(1,45,84,.14);
  --radius:    8px;
  --serif:     'Fraunces', Georgia, serif;
  --sans:      'IBM Plex Sans', system-ui, sans-serif;
  --mono:      'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
#root {
  background: var(--bg);
}
.de-hero {
  position: relative;
  height: 750px;
  max-height: 750px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy);
  margin-top: 0;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.vis { opacity: 1; transform: translateY(0); }
.d2 { transition-delay: .12s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .36s; }
.d5 { transition-delay: .48s; }

/* ---- NAV ---- */
.de-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 52px;
  gap: 28px;
  background: rgba(247,244,240,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  transition: background .35s ease, box-shadow .35s ease;
}
.de-nav.scrolled {
  background: rgba(247,244,240,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.de-nav .nav-logo img { height: 41px; width: auto; }
.de-nav .nav-tagline {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  transition: color .35s;
}
.de-nav.scrolled .nav-tagline { color: var(--muted); }
.de-nav .nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
}
.de-nav .nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
  letter-spacing: .01em;
}
.de-nav.scrolled .nav-links a { color: var(--muted); }
.de-nav .nav-links a:hover { color: var(--orange) !important; }
.de-nav .nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.de-nav .nav-cta:hover { background: var(--orange-dk); transform: translateY(-1px); }

/* Mobile hamburger */
.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.nav-ham span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: background .35s, transform .25s;
}
.de-nav.scrolled .nav-ham span { background: var(--text); }

/* Mobile drawer */
.mob-menu {
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 199;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mob-menu.open { transform: translateY(0); }
.mob-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-lt);
  transition: color .15s;
}
.mob-menu a:last-child { border-bottom: none; }
.mob-menu a:hover { color: var(--orange); }
.mob-cta {
  background: var(--orange);
  color: #fff !important;
  text-align: center;
  padding: 14px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  margin-top: 8px;
  border-bottom: none !important;
}

/* ---- HERO ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  background-color: var(--navy);
}
.hero-ovl {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(1,45,84,.55) 0%, rgba(1,45,84,0) 40%),
    linear-gradient(110deg, rgba(1,45,84,.97) 0%, rgba(1,45,84,.92) 35%, rgba(1,45,84,.82) 62%, rgba(1,45,84,.72) 100%);
}
.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 120px 64px 80px;
}
.hero-inner { max-width: 680px; }
.hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 22px;
  text-wrap: pretty;
}
.hero-h1 em { font-style: italic; font-weight: 300; opacity: .88; }
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  margin-bottom: 16px;
  max-width: 540px;
  text-wrap: pretty;
}
.hero-meta {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.62);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s, transform .15s, box-shadow .2s;
  width: fit-content;
  cursor: pointer;
  border: none;
}
.hero-cta:hover {
  background: var(--orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,152,0,.45);
}

/* ---- SECTION chassis ---- */
.de-sec { padding: 100px 64px; }
.de-sec-alt { background: var(--bg-alt); }
.de-sec-dark { background: var(--navy); }
.de-inner { max-width: 1160px; margin: 0 auto; }

.sec-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.sec-h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.sec-h2 em { font-style: italic; font-weight: 300; color: var(--blue); }
.sec-lead {
  font-size: 17px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 32px;
  text-wrap: pretty;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,152,0,.38); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- PARALLAX QUOTE ---- */
.de-parallax {
  background: var(--navy);
  padding: 100px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.de-parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(15,74,129,.35) 0%, transparent 70%);
}
.parallax-q {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.95);
  line-height: 1.42;
  max-width: 780px;
  margin: 0 auto;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
/* quote mark removed */

/* ---- CARDS ---- */
.de-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.de-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ---- CAROUSEL ---- */
.carousel-outer { overflow: hidden; }
.carousel-track { display: flex; gap: 24px; transition: transform .42s cubic-bezier(.4,0,.2,1); }
.car-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
  color: var(--text);
}
.car-arrow:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); background: var(--orange-lt); }
.car-arrow:disabled { opacity: .3; cursor: not-allowed; }
.car-dots { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.car-dot {
  height: 6px; width: 6px;
  border-radius: 3px;
  background: var(--border);
  cursor: pointer;
  transition: width .25s, background .25s;
}
.car-dot.active { width: 20px; background: var(--orange); }

/* ---- CHECKLISTS ---- */
.chk-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.chk-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.chk-ico {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--orange-lt);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* ---- ACCORDION ---- */
.acc-item { border-bottom: 1px solid var(--border-lt); }
.acc-btn {
  width: 100%;
  background: none; border: none;
  padding: 22px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; cursor: pointer; text-align: left;
}
.acc-q { font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.acc-ico {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all .25s;
  margin-top: 1px;
}
.acc-item.open .acc-ico {
  background: var(--orange); border-color: var(--orange);
  color: #fff; transform: rotate(45deg);
}
.acc-body {
  overflow: hidden; max-height: 0;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
}
.acc-item.open .acc-body { max-height: 400px; }
.acc-ans { font-size: 15px; line-height: 1.72; color: var(--muted); padding-bottom: 22px; }

/* ---- FOOTER ---- */
.de-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 72px 64px 40px; }

/* ---- FAB ---- */
.fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whats); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.fab::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--whats);
  opacity: .4;
  animation: fabpulse 2.2s ease-out infinite;
}
@keyframes fabpulse {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes scrollhint {
  0%, 100% { opacity: .4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: .8; transform: translateX(-50%) translateY(4px); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .de-sec { padding: 80px 40px; }
  .de-parallax { padding: 80px 40px; }
  .de-footer { padding: 60px 40px 36px; }
  .de-nav { padding: 0 32px; }
  .hero-body { padding: 100px 40px 72px; }
}

@media (max-width: 768px) {
  .de-nav { padding: 0 20px; gap: 0; }
  .de-nav .nav-links,
  .de-nav .nav-cta,
  .de-nav .nav-tagline { display: none !important; }
  .nav-ham { display: flex; }
  .de-sec { padding: 64px 20px; }
  .de-parallax { padding: 64px 20px; background-attachment: scroll !important; }
  .de-footer { padding: 52px 20px 32px; }
  .hero-body { padding: 88px 20px 60px; }
  .hero-sub { font-size: 16px; }
  .hero-meta { font-size: 14px; }
}
