/* === DR. JAVIER JÁCOME V. — Landing ============================
 * Identidad: negro editorial + dorado champagne + serifa display.
 * Heredada del feed @dr.javierjacomev y de la papelería de Valis Clinic.
 * ============================================================== */

:root {
  --ink:        #0A0A0A;
  --ink-2:      #141414;
  --ink-3:      #1c1c1c;
  --line:       rgba(245, 241, 232, 0.12);
  --line-2:     rgba(245, 241, 232, 0.06);
  --cream:      #F5F1E8;
  --cream-2:    #EFE7DC;
  --muted:      #a8a39a;
  --gold:       #C9A961;
  --gold-2:     #B89968;
  --gold-soft:  rgba(201, 169, 97, 0.18);
  --navy:       #1B3556;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, system-ui, sans-serif;

  --maxw: 1240px;
  --pad:  clamp(20px, 4vw, 56px);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --t-fast: .25s cubic-bezier(.4,0,.2,1);
  --t-base: .45s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .005em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* === TYPOGRAPHY =============================================== */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); font-weight: 400; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 28px;
  position: relative;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 18px; height: 1px; background: var(--gold);
}
.eyebrow--center { padding-left: 0; padding-bottom: 16px; }
.eyebrow--center::before { display: none; }

.section__head { text-align: center; margin-bottom: 64px; }
.section__head h2 { font-size: clamp(40px, 5.5vw, 72px); margin-top: 18px; }
.section__head p { color: var(--muted); margin-top: 14px; max-width: 540px; margin-inline: auto; }

/* === BUTTONS ================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
}
.btn--sm  { padding: 10px 18px; font-size: 11px; letter-spacing: .2em; }
.btn--gold {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 10px 28px -12px rgba(201, 169, 97, 0.55);
}
.btn--gold:hover { background: var(--cream); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--cream);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* === BRAND ISOTYPE =========================================== */
.brand__mark { color: var(--gold); width: 30px; height: 30px; display: inline-flex; }
.brand__mark svg { width: 100%; height: 100%; }

/* === NAVBAR =================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav.is-scrolled { background: rgba(10, 10, 10, 0.92); border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; gap: 32px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.005em; }
.brand__sub  { font-size: 9.5px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-weight: 500; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 12px; font-weight: 400; letter-spacing: .15em; text-transform: uppercase;
  color: var(--cream); opacity: .75; transition: opacity var(--t-fast), color var(--t-fast);
  position: relative;
}
.nav__links a:hover { opacity: 1; color: var(--gold); }
@media (max-width: 880px) { .nav__links { display: none; } }

/* === HERO ===================================================== */
.hero {
  position: relative;
  padding: 140px 0 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201, 169, 97, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(27, 53, 86, 0.18), transparent 60%),
    var(--ink);
}
.hero__grid {
  flex: 1;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--pad) 80px;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; padding-top: 24px; }
}
.hero__copy { max-width: 580px; }
.hero__title {
  font-size: clamp(52px, 7.8vw, 110px);
  line-height: .98;
  margin: 28px 0 28px;
  letter-spacing: -.025em;
  font-weight: 500;
}
.hero__lede {
  font-size: 18px; line-height: 1.65;
  color: var(--cream); opacity: .82;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust {
  margin-top: 48px;
  display: flex; align-items: center; gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__trust div:not(.sep) { display: flex; flex-direction: column; min-width: 0; }
.hero__trust strong {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
}
.hero__trust span {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
  white-space: nowrap;
}
.hero__trust .sep { width: 1px; height: 30px; background: var(--line); flex-shrink: 0; }
@media (max-width: 560px) {
  .hero__trust { gap: 14px; flex-wrap: nowrap; }
  .hero__trust .sep { height: 24px; }
  .hero__trust strong { font-size: 16px; }
  .hero__trust span { font-size: 9.5px; letter-spacing: .12em; }
}

.hero__visual { position: relative; justify-self: end; max-width: 540px; width: 100%; }
.hero__frame {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 60px 80px -40px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px var(--line);
}
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.55) 100%);
  pointer-events: none;
}
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  transform: scale(1.03);
}
.hero__signature {
  position: absolute; bottom: 18px; left: 22px; right: 22px;
  font-family: var(--serif); font-style: italic; font-size: 28px;
  color: var(--cream); letter-spacing: .01em;
  display: flex; align-items: center; gap: 14px;
}
.hero__signature::before {
  content: ""; flex: 0 0 36px; height: 1px; background: var(--gold);
}

/* MARQUEE */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 97, 0.025));
}
.marquee__track {
  display: inline-flex; gap: 28px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
}
.marquee span {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--cream); opacity: .85;
}
.marquee .dot { color: var(--gold); opacity: 1; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === PHILOSOPHY =============================================== */
.philosophy {
  padding: clamp(70px, 10vw, 130px) 0;
  background: var(--ink);
  position: relative;
}
.philosophy .container { max-width: 980px; text-align: center; }
.philosophy__quote {
  margin: 24px 0 80px;
  position: relative;
}
.philosophy__quote p {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.25; letter-spacing: -.005em;
  font-weight: 400;
  color: var(--cream);
}
.philosophy__quote p em { color: var(--gold); font-style: italic; }
.philosophy__quote cite {
  display: block; margin-top: 32px;
  font-style: normal;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
}
.pillars {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (max-width: 780px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillars li {
  background: var(--ink);
  padding: 42px 32px;
  text-align: left;
}
.pillars__num {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--gold); letter-spacing: .05em;
}
.pillars h3 { font-size: 24px; margin: 14px 0 12px; font-weight: 500; }
.pillars p  { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* === SERVICES ================================================= */
.services { padding: clamp(70px, 10vw, 140px) 0; background: var(--ink-2); }

/* Tratamiento estrella */
.svc-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  margin-top: 40px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.svc-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(201, 169, 97, 0.06));
  pointer-events: none;
}
.svc-hero__visual {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}
.svc-hero__visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}
.svc-hero__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--ink));
}
.svc-hero__copy {
  padding: clamp(36px, 5vw, 64px);
  display: flex; flex-direction: column; gap: 22px;
  position: relative; z-index: 1;
}
.svc-hero__copy h3 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.svc-hero__lede {
  color: var(--muted);
  font-size: 16px; line-height: 1.65;
  max-width: 46ch;
}
.svc-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 4px 0 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc-hero__meta dt {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.svc-hero__meta dd {
  font-family: var(--serif); font-style: italic;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.3;
}
.btn--ghost-gold {
  align-self: flex-start;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn--ghost-gold:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Categorías */
.svc-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.svc-cat {
  background: var(--ink);
  padding: clamp(28px, 3vw, 44px);
  transition: background var(--t-base);
}
.svc-cat:hover { background: var(--ink-3); }
.svc-cat > header {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.svc-cat__num {
  font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 14px;
  letter-spacing: .05em;
}
.svc-cat > header h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.005em;
}
.svc-cat ul { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.svc-cat li { position: relative; padding-left: 18px; }
.svc-cat li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: .7;
}
.svc-cat h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.005em;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.svc-cat p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.svc-cat .pill {
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 8px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-weight: 400;
}

.svc-disclaimer {
  margin-top: 40px;
  text-align: center;
  font-family: var(--serif); font-style: italic;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 980px) {
  .svc-hero { grid-template-columns: 1fr; }
  .svc-hero__visual { min-height: 280px; }
  .svc-hero__visual::after { background: linear-gradient(180deg, transparent 60%, var(--ink)); }
  .svc-cats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc-hero__meta { grid-template-columns: 1fr; gap: 16px; }
}

/* === GALLERY ================================================== */
.gallery { padding: clamp(70px, 10vw, 140px) 0; background: var(--ink); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ad {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-2);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.ad:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.ad__img {
  display: block;
  overflow: hidden;
  background: var(--ink);
}
.ad__img img {
  width: 100%; height: auto; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.ad:hover .ad__img img { transform: scale(1.03); }
.ad figcaption {
  padding: 16px 20px 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
  border-top: 1px solid var(--line);
  background: var(--ink);
  letter-spacing: .005em;
}
@media (max-width: 880px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ad figcaption { font-size: 16px; padding: 14px 16px; }
}
@media (max-width: 520px) {
  .gallery__grid { grid-template-columns: 1fr; }
}

/* === CLINIC =================================================== */
.clinic { padding: clamp(80px, 12vw, 160px) 0; background: var(--ink-2); }
.clinic__grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) { .clinic__grid { grid-template-columns: 1fr; } }
.clinic__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 50px 80px -50px rgba(0, 0, 0, 0.8);
}
.clinic__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/11; }
.clinic__copy h2 { font-size: clamp(40px, 5vw, 64px); margin: 22px 0 24px; }
.clinic__copy > p { color: var(--muted); margin-bottom: 36px; max-width: 480px; }
.clinic__list { list-style: none; }
.clinic__list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--cream); opacity: .85;
  font-size: 14.5px;
}
.clinic__list li:last-child { border-bottom: 1px solid var(--line); }
.clinic__list strong { color: var(--gold); font-weight: 500; margin-right: 8px; }

/* === VISIT ==================================================== */
.visit {
  padding: clamp(80px, 12vw, 160px) 0;
  background:
    radial-gradient(ellipse 60% 60% at 90% 10%, rgba(201, 169, 97, 0.12), transparent 60%),
    var(--ink);
}
.visit__grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .visit__grid { grid-template-columns: 1fr; } }
.visit h2 { font-size: clamp(40px, 5.5vw, 72px); margin: 22px 0 22px; }
.visit__lead { font-size: 18px; color: var(--muted); margin-bottom: 40px; max-width: 500px; }
.visit__cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 36px;
}
@media (max-width: 700px) { .visit__cards { grid-template-columns: 1fr; } }
.visit__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  background: var(--ink-2);
}
.visit__card h3 {
  font-size: 18px; font-weight: 500;
  color: var(--gold);
  margin-bottom: 14px;
  font-family: var(--sans);
  letter-spacing: -.005em;
}
.visit__card p { color: var(--cream); opacity: .85; font-size: 14.5px; line-height: 1.65; }
.visit__hours { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--line-2); }
.visit__hours strong { color: var(--cream); opacity: 1; font-weight: 500; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.visit__plate {
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  background: linear-gradient(160deg, rgba(201, 169, 97, 0.08) 0%, transparent 70%), var(--ink-2);
  position: sticky; top: 100px;
}
.plate__mark { color: var(--gold); width: 64px; height: 64px; margin: 0 auto 22px; }
.plate__mark svg { width: 100%; height: 100%; }
.plate__name {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  margin-bottom: 8px;
}
.plate__role { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.plate__phone {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--gold);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* === FOOTER =================================================== */
.foot {
  padding: 48px 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.foot__grid {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.foot__brand { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.foot__small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.foot__links { display: flex; gap: 24px; }
.foot__links a { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); transition: color var(--t-fast); }
.foot__links a:hover { color: var(--gold); }
.foot__bc { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.foot__bc a { color: var(--gold); }

/* === WHATSAPP FLOAT =========================================== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: white;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform var(--t-fast);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* === REVEAL ANIMATIONS ======================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease-out, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee__track { animation: none; }
}
