/* ==========================================================
   Dra. Paulina Atenas · Odontología Avanzada
   Identidad: lujo sobrio · limpieza · profesionalismo
   ========================================================== */

:root {
  --navy: #0F1F30;
  --navy-2: #16293D;
  --navy-3: #1F364E;
  --gold: #C9922E;
  --gold-light: #F2C664;
  --gold-dark: #9C5F1C;
  --gold-grad: linear-gradient(100deg, #A8661F 0%, #E3A93E 35%, #F7D27A 50%, #E3A93E 65%, #A8661F 100%);
  --cream: #F7F3EE;
  --ivory: #FCFAF7;
  --sand: #EDE5DA;
  --taupe: #A69F9A;
  --ink: #1C2431;
  --muted: #5F6672;
  --line: rgba(15, 31, 48, .12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1.1em; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Tipografía base ---------- */
.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--gold-light); }

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--navy);
  margin-bottom: 26px;
}
.title em, .hero__title em { font-style: italic; color: var(--gold-dark); }
.title--light { color: #fff; }
.title--light em { color: var(--gold-light); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s, color .35s, border-color .35s, background-position .6s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 18px 36px; }
.btn--gold {
  background: var(--gold-grad);
  background-size: 220% 100%;
  background-position: 0% 0;
  color: var(--navy);
  box-shadow: 0 10px 30px -12px rgba(201, 146, 46, .7);
}
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(201, 146, 46, .85); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); transform: translateY(-2px); }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s, height .4s var(--ease);
}
.header.is-solid {
  background: rgba(15, 31, 48, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(242, 198, 100, .18);
  --header-h: 70px;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 46px; width: auto; transition: height .4s var(--ease); }
.header.is-solid .header__logo img { height: 38px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold-light); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 12px 22px; }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), top .35s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.hero__video { position: absolute; top: 0; left: 0; width: 128%; max-width: none; height: 100%; object-fit: cover; object-position: center 45%; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 31, 48, .94) 0%, rgba(15, 31, 48, .78) 34%, rgba(15, 31, 48, .2) 58%, rgba(15, 31, 48, 0) 80%),
    linear-gradient(0deg, rgba(15, 31, 48, .55) 0%, rgba(15, 31, 48, 0) 35%);
}
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: 90px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.06;
  max-width: 19ch;
  margin-bottom: 28px;
}
.hero__title em { color: var(--gold-light); display: block; }
.hero__lead { max-width: 520px; font-size: 17px; color: rgba(255, 255, 255, .82); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--gold-light); animation: scroll 2s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Pilares ---------- */
.pillars { background: var(--navy); color: #fff; border-top: 1px solid rgba(242, 198, 100, .2); }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 52px 32px; border-left: 1px solid rgba(255, 255, 255, .08); }
.pillar:last-child { border-right: 1px solid rgba(255, 255, 255, .08); }
.pillar svg { width: 38px; height: 38px; fill: none; stroke: var(--gold-light); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.pillar h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; margin-bottom: 10px; }
.pillar p { font-size: 14px; color: rgba(255, 255, 255, .66); margin: 0; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section__head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.section__head--left { text-align: left; margin: 0; }
.section__head--left .eyebrow::after { display: none; }
.section__lead { color: var(--muted); font-size: 16.5px; }

/* ---------- Nosotros ---------- */
.about { background: var(--ivory); }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__media::before {
  content: ""; position: absolute; inset: 28px -28px -28px 28px;
  border: 1px solid var(--gold); z-index: -1;
}
.about__badge {
  position: absolute; right: -36px; bottom: 48px;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center;
  box-shadow: 0 20px 50px -20px rgba(15, 31, 48, .6);
}
.about__badge img { width: 74%; }
.about__text p { color: var(--muted); }
.quote {
  margin: 34px 0 38px;
  padding-left: 26px;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 25px;
  line-height: 1.4;
  color: var(--navy);
}

/* ---------- Odontología ---------- */
.services { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--ivory);
  padding: 40px 30px 44px;
  position: relative;
  transition: background-color .45s var(--ease), color .45s;
}
.card::after {
  content: ""; position: absolute; left: 30px; right: 30px; bottom: 0; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover { background: var(--navy); }
.card:hover::after { transform: scaleX(1); }
.card:hover h3 { color: #fff; }
.card:hover p { color: rgba(255, 255, 255, .7); }
.card__num { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: .1em; color: var(--gold); margin-bottom: 30px; }
.card h3 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin-bottom: 12px; transition: color .45s; }
.card p { font-size: 14px; color: var(--muted); margin: 0; transition: color .45s; }
.services__cta { text-align: center; margin-top: 56px; }

/* ---------- Estética ---------- */
.aesthetic { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.aesthetic::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 198, 100, .12), transparent 65%);
}
.aesthetic__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.aesthetic__text > p { color: rgba(255, 255, 255, .72); }
.treatments { list-style: none; padding: 0; margin: 34px 0 44px; border-top: 1px solid rgba(255, 255, 255, .12); }
.treatments li { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: baseline; }
.treatments h3 { font-family: var(--serif); font-size: 24px; color: var(--gold-light); }
.treatments p { font-size: 14px; color: rgba(255, 255, 255, .66); margin: 0; }
.aesthetic__media { position: relative; height: 640px; }
.aesthetic__img { position: absolute; object-fit: cover; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); }
.aesthetic__img--a { width: 68%; height: 82%; right: 0; top: 0; }
.aesthetic__img--b { width: 50%; height: 56%; left: 0; bottom: 0; border: 8px solid var(--navy); }

/* ---------- Proceso ---------- */
.process { background: var(--ivory); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(201, 146, 46, .15)); }
.step { position: relative; }
.step span {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ivory); border: 1px solid var(--gold); color: var(--gold-dark);
  font-family: var(--serif); font-size: 26px; margin-bottom: 26px; position: relative;
}
.step h3 { font-family: var(--serif); font-size: 25px; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Urgencias ---------- */
.urgent { background: var(--sand); }
.urgent__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.urgent__grid > div > p { color: var(--muted); max-width: 520px; }
.urgent__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hours { background: var(--navy); color: #fff; padding: 48px 46px; position: relative; }
.hours::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(242, 198, 100, .3); pointer-events: none; }
.hours h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 24px; }
.hours dl { margin: 0; }
.hours dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14.5px; }
.hours dd { margin: 0; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.hours dt { color: rgba(255, 255, 255, .7); }
.hours .hours__group { border: 0; padding: 22px 0 4px; }
.hours .hours__group:first-child { padding-top: 0; }
.hours .hours__group dt { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); display: flex; align-items: center; gap: 10px; }
.hours .hours__group dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7FB89A; }
.hours .hours__group--urgent dt::before { background: var(--gold-light); box-shadow: 0 0 0 4px rgba(242, 198, 100, .2); }

/* ---------- FAQ ---------- */
.faq { background: var(--ivory); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 100px); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font-family: var(--serif); font-size: 23px; color: var(--navy); transition: color .3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after, .faq__list summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1px; background: var(--gold); transition: transform .35s var(--ease);
}
.faq__list summary::before { transform: rotate(90deg); }
.faq__list details[open] summary::before { transform: rotate(0); }
.faq__list summary:hover { color: var(--gold-dark); }
.faq__list details p { color: var(--muted); padding: 0 48px 24px 0; margin: 0; font-size: 15px; }

/* ---------- CTA final ---------- */
.cta-band {
  background: linear-gradient(rgba(15, 31, 48, .82), rgba(15, 31, 48, .9)), url("../img/instrumental.webp") center / cover fixed;
  padding: 110px 0; text-align: center;
}
.cta-band__inner { display: flex; flex-direction: column; align-items: center; }
.cta-band__logo { width: 110px; margin-bottom: 30px; }
.cta-band .title { margin-bottom: 36px; }

/* ---------- Contacto ---------- */
.contact { background: var(--cream); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 6vw, 90px); align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 0 0 34px; }
.contact__list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; word-break: break-word; }
.contact__list span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.contact__list a:hover { color: var(--gold-dark); }
.social { display: flex; gap: 12px; }
.social a { width: 46px; height: 46px; border: 1px solid var(--navy); border-radius: 50%; display: grid; place-items: center; transition: background-color .3s, color .3s; }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social a:hover { background: var(--navy); color: var(--gold-light); }
.contact__map { min-height: 440px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: grayscale(.85) contrast(1.05) sepia(.12); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .6); padding: 64px 0 40px; border-top: 1px solid rgba(242, 198, 100, .2); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.footer__logo { width: 260px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.footer__nav a { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.footer__nav a:hover { color: var(--gold-light); }
.footer__copy { font-size: 12.5px; margin: 0; }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.mobile-bar { display: none; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll span { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 1px solid rgba(255, 255, 255, .08); }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .hero__video { width: 100%; }
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--navy);
    flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 30px; letter-spacing: 0; text-transform: none; }
  .nav__cta { margin-top: 14px; }
  .header__logo img { height: 38px; }

  .about__grid, .aesthetic__grid, .urgent__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .about__badge { right: -12px; width: 120px; height: 120px; }
  .aesthetic__media { height: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .steps::before { display: none; }
  .cta-band { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero__video { width: 100%; object-position: 50% center; }
  .hero__veil { background: linear-gradient(0deg, rgba(15, 31, 48, .95) 0%, rgba(15, 31, 48, .7) 55%, rgba(15, 31, 48, .35) 100%); }
  .hero { align-items: flex-end; }
  .hero__lead { font-size: 15.5px; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }
  .pillars__grid, .cards { grid-template-columns: 1fr; }
  .pillar { border-left: 0 !important; border-right: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 38px 4px; }
  .about__media::before { inset: 16px -12px -16px 16px; }
  .treatments li { grid-template-columns: 1fr; gap: 4px; }
  .aesthetic__media { height: 440px; }
  .steps { grid-template-columns: 1fr; }
  .hours { padding: 38px 28px; }
  .faq__list summary { font-size: 20px; }
  .urgent__actions .btn { width: 100%; }
  .wa-float { bottom: 16px; right: 16px; width: 52px; height: 52px; transition: transform .35s var(--ease), bottom .45s var(--ease), opacity .35s var(--ease); }
  body:not(.bar-on) .wa-float { opacity: 0; pointer-events: none; }
  body.bar-on .wa-float { bottom: 86px; }
  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    transform: translateY(100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(15, 31, 48, .97); border-top: 1px solid rgba(242, 198, 100, .25);
  }
  .mobile-bar .btn { width: 100%; }
  body.bar-on .mobile-bar { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .footer { padding-bottom: 110px; }
}
