/* ============================================================
   Dra. Elizabeth Ramírez — Sitio web
   Sistema de diseño: nude/beige + rosa antiguo + dorado
   Tipografías: Playfair Display (títulos) + Inter (cuerpo)
   ============================================================ */

:root {
  /* Paleta */
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --nude: #E8D9C8;
  --nude-soft: #F3EAE0;
  --rose: #C89B8B;
  --rose-soft: #E4CCC2;
  --rose-deep: #9C6E5F;
  --rose-dark: #84594B;
  --gold: #B89B5E;
  --gold-soft: #D9C49A;
  --ink: #4E4237;
  --ink-soft: #7A6A5C;
  --line: #E9DDD0;

  /* Sombras */
  --shadow-sm: 0 2px 12px rgba(78, 66, 55, .07);
  --shadow-md: 0 12px 32px rgba(78, 66, 55, .11);
  --shadow-lg: 0 28px 60px rgba(78, 66, 55, .16);

  /* Forma */
  --radius: 18px;
  --radius-sm: 12px;

  /* Tipografía */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1120px;
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Utilidades ---------- */
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section { padding: 5.5rem 0; }
.section--tinted { background: var(--nude-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-sub { color: var(--ink-soft); font-weight: 300; }
.section-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--rose-deep);
  margin-top: 1.5rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn-primary { background: var(--rose-deep); color: #fff; box-shadow: 0 10px 24px rgba(156, 110, 95, .35); }
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(156, 110, 95, .4); }
.btn-outline { border: 2px solid var(--rose-deep); color: var(--rose-deep); background: transparent; }
.btn-outline:hover { background: var(--rose-deep); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--rose-deep); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-light-outline { border: 2px solid rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-light-outline:hover { background: #fff; color: var(--rose-deep); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(250, 246, 240, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 60%, var(--gold) 130%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(156, 110, 95, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.brand-text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--rose-deep); }
.main-nav .nav-cta {
  background: var(--rose-deep);
  color: #fff;
  padding: .62rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(156, 110, 95, .3);
  transition: background .25s ease, transform .25s ease;
}
.main-nav .nav-cta:hover { background: var(--rose-dark); transform: translateY(-1px); color: #fff; }

.menu-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(55% 60% at 12% 15%, rgba(200,155,139,.16) 0%, transparent 60%),
    radial-gradient(45% 55% at 88% 85%, rgba(184,155,94,.14) 0%, transparent 60%),
    linear-gradient(135deg, #F6EDE2 0%, var(--bg) 48%, #F0E4D4 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h) * 0.4);
  padding: calc(var(--header-h) + 3.5rem) 0 6rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.hero-title em {
  font-style: italic;
  color: var(--rose-deep);
  background: linear-gradient(120deg, var(--rose-deep), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 1.1rem; font-weight: 300; color: var(--ink-soft); max-width: 30rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.hero-trust li { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--ink-soft); }
.hero-trust svg { width: 1rem; height: 1rem; color: var(--gold); }

.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media img {
  position: relative;
  width: min(380px, 82vw);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 1.6rem;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hero-frame { position: absolute; width: min(380px, 82vw); aspect-ratio: 3/4; border-radius: 1.6rem; }
.hero-frame--rose { background: var(--rose-soft); transform: rotate(4deg) translate(14px, -10px); z-index: 0; }
.hero-frame--gold { background: var(--gold-soft); transform: rotate(-3deg) translate(-16px, 12px); z-index: 1; opacity: .55; }

.hero-wave { display: block; width: 100%; height: 60px; position: absolute; bottom: -1px; left: 0; z-index: 3; }

/* ---------- Tarjetas ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  margin-bottom: 1.3rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon--rose { background: var(--rose-soft); color: var(--rose-deep); }
.card-icon--gold { background: #F0E7D2; color: var(--gold); }
.card-icon--nude { background: var(--nude-soft); color: var(--rose-deep); }
.card h3 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; margin-bottom: .3rem; }
.card-sub { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.card ul { display: grid; gap: .65rem; }
.card li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--ink); }
.card li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: .5em;
}

/* ---------- Tarifas ---------- */
.pricing {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.6rem 2.8rem;
  display: grid;
  gap: 2.2rem;
}
.pricing-group-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rose-deep);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px dashed var(--line);
}
.price-list { display: grid; gap: .9rem; }
.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: .98rem;
  color: var(--ink);
}
.price-list li span { position: relative; padding-right: .25rem; }
.price-list li span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .28em;
  border-bottom: 1px dotted var(--line);
}
.price-list li small { display: block; color: var(--ink-soft); font-size: .8rem; font-weight: 400; }
.price-list li strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--rose-deep);
  white-space: nowrap;
}
.pricing-note { font-size: .8rem; color: var(--ink-soft); text-align: center; }

/* ---------- Sobre la Dra. ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 920px; margin: 0 auto; }
.about-item {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.about-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--rose-soft), var(--nude-soft));
  color: var(--rose-deep);
  border: 1px solid var(--rose-soft);
}
.about-icon svg { width: 26px; height: 26px; }
.about-item h4 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.about-item p { font-size: .9rem; color: var(--ink-soft); font-weight: 300; }

/* ---------- Ubicación ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.visit-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 16/10; object-fit: cover; }
.visit-content .section-title { margin-bottom: .6rem; }
.visit-info { display: grid; gap: 1.1rem; margin: 1.8rem 0 2.2rem; }
.visit-info li { display: flex; gap: 1rem; align-items: flex-start; }
.visit-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.visit-icon svg { width: 22px; height: 22px; }
.visit-info strong { display: block; font-family: var(--font-serif); font-size: 1rem; margin-bottom: .15rem; }
.visit-info small { color: var(--ink-soft); font-size: .88rem; }

/* ---------- Formulario de cita ---------- */
.appointment-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.6rem 2.4rem;
  display: grid;
  gap: 1.3rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rose);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 155, 139, .18);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-status { font-size: .9rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--rose-deep); }
.form-status.err { color: #B0483C; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- Opiniones ---------- */
.rating-badge { display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: .88rem; color: var(--ink-soft); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .35s ease, box-shadow .35s ease;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial p { font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; line-height: 1.55; color: var(--ink); flex: 1; }
.testimonial footer { display: flex; align-items: baseline; gap: .6rem; }
.testimonial footer strong { font-family: var(--font-serif); font-size: 1.02rem; color: var(--rose-deep); }
.testimonial footer span { font-size: .8rem; color: var(--ink-soft); }
.section-cta { text-align: center; margin-top: 2.6rem; }
.section-cta a { color: var(--rose-deep); font-size: .95rem; font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.section-cta a:hover { border-color: var(--rose-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(60% 90% at 15% 20%, rgba(255,255,255,.14) 0%, transparent 55%),
    radial-gradient(50% 80% at 90% 90%, rgba(184,155,94,.25) 0%, transparent 55%),
    linear-gradient(135deg, var(--rose-deep) 0%, var(--rose-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}
.cta-inner h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; margin-bottom: .8rem; }
.cta-inner p { opacity: .85; font-weight: 300; max-width: 32rem; margin: 0 auto 2rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,246,240,.85); padding: 3.8rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.6rem; }
.site-footer h4 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--gold-soft); margin-bottom: 1rem; }
.site-footer p, .site-footer li { font-size: .9rem; font-weight: 300; line-height: 1.7; }
.site-footer ul { display: grid; gap: .45rem; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(250,246,240,.12); padding-top: 1.6rem; text-align: center; font-size: .8rem; color: rgba(250,246,240,.5); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
/* Sin JS o si algo falla, el contenido siempre es visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: calc(var(--header-h) + 2rem); }
  .hero-content { order: 1; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-media { order: 0; margin-bottom: 1rem; }
  .hero-media img, .hero-frame { width: min(300px, 70vw); }
  .cards-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; max-width: 460px; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(250,246,240,.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.6rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .35s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav .nav-cta { border-bottom: 0; text-align: center; margin-top: .8rem; }
  .form-row { grid-template-columns: 1fr; }
  .pricing { padding: 1.8rem 1.4rem; }
  .appointment-form { padding: 1.8rem 1.3rem; }
  .section { padding: 3.8rem 0; }
}
