/* ============================================================
   Clínica de Miomas — Mínima Invasión Ginecológica
   Design tokens derived from brand mark (rose-gold / silver / blush)
   ============================================================ */

:root {
  --blush: #FDE8F1;
  --rose: #F0A6B5;
  --rose-deep: #E27E92;
  --rosegold: #B78D74;
  --ink: #2E2A2A;
  --stone: #6B6560;
  --mist: #F2EFEE;
  --line: #DCD5D3;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-deep: #1EBE57;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--stone);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- Eyebrow label (signature device, echoes logo subtitle) -------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rosegold);
  margin-bottom: 18px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  height: 1px;
  width: 32px;
  background: var(--rosegold);
  opacity: 0.6;
}
.eyebrow.left {
  justify-content: flex-start;
}
.eyebrow.left::after { display: none; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible {
  outline: 3px solid var(--rosegold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
}
.btn-primary:hover { background: var(--whatsapp-deep); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--rosegold); color: var(--rosegold); }

.btn-ghost {
  background: var(--white);
  color: var(--rose-deep);
  border-color: var(--rose);
}
.btn-ghost:hover { background: var(--blush); }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand img { height: 40px; width: auto; flex: none; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .brand { font-size: 0.92rem; }
  .brand img { height: 34px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-links a { padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s; }
.nav-links a:hover, .nav-links a.active { border-color: var(--rosegold); color: var(--rose-deep); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--mist); }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 20%, var(--blush) 0%, var(--white) 62%);
  padding: 90px 0 100px;
  text-align: center;
}
.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -46%);
  border-radius: 50%;
  border: 1px solid var(--rosegold);
  opacity: 0.18;
  pointer-events: none;
}
.hero-ring.small {
  width: 520px;
  height: 520px;
  opacity: 0.28;
  border-color: var(--rose);
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker { color: var(--rosegold); }
.hero h1 { max-width: 780px; margin-left: auto; margin-right: auto; }
.hero-sub {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.08rem;
  color: var(--stone);
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 26px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.75;
}

/* -------------------- Sections -------------------- */
section { padding: 88px 0; }
.section-alt { background: var(--mist); }
.section-blush { background: var(--blush); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-header p { font-size: 1.03rem; }

/* -------------------- Cards / Grids -------------------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--rosegold); transform: translateY(-4px); }
.card .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--rose);
  margin-bottom: 8px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--rosegold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rosegold);
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* -------------------- About / split -------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blush);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-media img { width: 62%; }

.checklist { list-style: none; margin: 24px 0; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--rose);
}

/* -------------------- Stats band -------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--ink);
}
.stat span {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone);
}

/* -------------------- CTA band -------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rosegold) 100%);
  border-radius: 22px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn-primary { background: var(--ink); box-shadow: none; }
.cta-band .btn-primary:hover { background: #000; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--ink);
  color: #cfc7c3;
  padding: 64px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--rose); }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { max-width: 280px; font-size: 0.88rem; color: #b4aca8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #a49c98;
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

.placeholder {
  color: var(--rose-deep);
  font-weight: 700;
}

/* -------------------- Floating WhatsApp button -------------------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  opacity: 0.6;
  animation: wa-pulse 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-tooltip {
  position: fixed;
  right: 96px;
  bottom: 40px;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.wa-tooltip.show { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) {
  .wa-tooltip { display: none; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 88px; }
}

/* -------------------- Cookie banner -------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(46, 42, 42, 0.16);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateY(140%);
  transition: transform 0.5s cubic-bezier(.2,.9,.3,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.86rem; color: var(--stone); }
.cookie-banner a { color: var(--rose-deep); font-weight: 700; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
}
.cookie-accept { background: var(--ink); color: #fff; }
.cookie-accept:hover { background: #000; }
.cookie-reject { background: transparent; color: var(--stone); border: 1px solid var(--line) !important; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-actions { justify-content: flex-end; }
}

/* -------------------- Legal pages -------------------- */
.legal-page { padding: 70px 0 100px; }
.legal-page .container { max-width: 820px; }
.legal-hero {
  background: var(--blush);
  padding: 60px 0 50px;
  text-align: center;
}
.legal-hero .eyebrow { justify-content: center; }
.legal-updated {
  font-size: 0.82rem;
  color: var(--stone);
  margin-bottom: 8px;
}
.legal-page h2 { margin-top: 44px; font-size: 1.5rem; }
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.9rem;
}
.legal-page th, .legal-page td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.legal-page th { background: var(--mist); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rose-deep);
  margin-bottom: 18px;
}

/* -------------------- Reveal on scroll -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------- Breadcrumb / page hero for landing -------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blush) 0%, var(--white) 100%);
  padding: 64px 0 70px;
  text-align: center;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 22px 0 8px;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
}

.procedure-list { display: grid; gap: 18px; }
.procedure {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  align-items: start;
}
.procedure .icon-badge { margin: 0; }
@media (max-width: 620px) {
  .procedure { grid-template-columns: 1fr; }
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
}
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
}
.step .step-num {
  counter-increment: step;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step .step-num::before { content: counter(step); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--rosegold);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; font-size: 0.95rem; }

.compliance-note {
  border: 1px dashed var(--rosegold);
  background: var(--blush);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.86rem;
  color: var(--ink);
}
