/* ============================================================
   Dra. Bianca Rubí Flores Reyes — Anestesiología
   Design system: elegant, feminine, professional
   Palette derived from reference site + her portrait
   ============================================================ */

:root {
  --ink: #32135f;          /* deep violet — headings, dark surfaces */
  --ink-soft: #4a2a7d;
  --berry: #b83270;        /* primary accent — CTAs */
  --berry-dark: #96255c;
  --purple: #7126ff;       /* secondary accent — details, links */
  --lav-050: #faf8ff;      /* page background */
  --lav-100: #f3eefd;
  --lav-200: #e1dcfd;
  --lav-300: #d2c9f7;
  --white: #ffffff;
  --text: #3b2d55;         /* body text — violet-gray */
  --muted: #6a5f86;
  --shadow-soft: 0 8px 30px rgba(50, 19, 95, 0.08);
  --shadow-lift: 0 16px 48px rgba(50, 19, 95, 0.14);
  --radius: 20px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--lav-050);
  -webkit-font-smoothing: antialiased;
}

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

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

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

a { color: var(--berry); text-decoration: none; }
a:hover { color: var(--berry-dark); }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 0.9rem;
}

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { margin-top: 0.9rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--berry), var(--berry-dark));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(184, 50, 112, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 50, 112, 0.45);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--lav-300);
}
.btn-ghost:hover { border-color: var(--berry); color: var(--berry); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(210, 201, 247, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--berry), var(--purple));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--berry); }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--lav-300);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-switch a, .lang-switch span {
  padding: 0.35rem 0.75rem;
  color: var(--muted);
}
.lang-switch .active {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 0;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(113, 38, 255, 0.10), transparent 60%),
    radial-gradient(50% 70% at 10% 85%, rgba(184, 50, 112, 0.08), transparent 60%),
    linear-gradient(180deg, var(--lav-100), var(--lav-050));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
}

.hero-copy { padding-bottom: clamp(3rem, 6vw, 5rem); }

.hero-copy .subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--berry);
  margin-top: 0.6rem;
}

.hero-copy .lead {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-figure {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 86%;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(160deg, var(--lav-300), var(--lav-200) 45%, rgba(184, 50, 112, 0.25));
}

.hero-figure img {
  position: relative;
  width: min(400px, 88%);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(50, 19, 95, 0.25));
}

.hero-emblem {
  position: relative;
  width: min(400px, 88%);
  min-height: clamp(340px, 44vw, 470px);
  display: grid;
  place-items: center;
}
.hero-portrait {
  width: min(340px, 76%);
  height: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #ffffff, var(--lav-200) 75%);
  border: 8px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 50px rgba(50, 19, 95, 0.28);
}

.hero-emblem span {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--white);
  opacity: 0.85;
  text-shadow: 0 8px 30px rgba(50, 19, 95, 0.25);
}

.hero-badge {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  z-index: 2;
}
.hero-badge small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72rem;
}
.badge-cert { left: 0; top: 52%; max-width: 190px; }
.badge-loc { right: 0; bottom: 6%; max-width: 200px; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--ink);
  color: var(--lav-200);
  padding: 1.4rem 0;
}
.trust .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.92rem;
}
.trust .item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.trust .dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--berry);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-grid .col p + p { margin-top: 1.1rem; }

.edu-cards { display: grid; gap: 1rem; }
.edu-card {
  background: var(--white);
  border: 1px solid var(--lav-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.edu-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.edu-card p { font-size: 0.92rem; color: var(--muted); }
.edu-card .year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--berry);
  letter-spacing: 0.08em;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin-top: 1rem;
  padding-left: 1.8rem;
  border-left: 2px solid var(--lav-300);
  display: grid;
  gap: 1.8rem;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.8rem - 7px);
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--berry);
  border: 3px solid var(--lav-050);
}
.timeline-item .year {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.06em;
}
.timeline-item h3 { font-size: 1.08rem; margin: 0.15rem 0 0.25rem; }
.timeline-item p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Services ---------- */
.services { background: var(--white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--lav-050);
  border: 1px solid var(--lav-200);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lav-200), var(--lav-300));
  margin-bottom: 1.1rem;
  font-size: 1.3rem;
}
.service-card h3 { margin-bottom: 0.8rem; }
.service-card ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.service-card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.94rem;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--berry);
}
.service-card li strong { color: var(--ink); }

.coverage-note {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  background: var(--lav-100);
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 0.92rem;
}
.coverage-note .pin { font-size: 1.1rem; }
.coverage-note strong { color: var(--ink); }

/* ---------- Philosophy ---------- */
.philosophy {
  background:
    radial-gradient(70% 100% at 90% 0%, rgba(113, 38, 255, 0.08), transparent 55%),
    var(--lav-100);
}
.phil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.phil-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}
.phil-card .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--lav-300);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.phil-card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.phil-card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 20%, var(--ink-soft) 60%, var(--berry-dark));
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: var(--lav-200);
  box-shadow: var(--shadow-lift);
}
.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { max-width: 560px; margin: 0 auto 1.8rem; }
.cta-band .btn-primary { font-size: 1.05rem; padding: 1rem 2.2rem; }
.cta-band .note { font-size: 0.85rem; margin-top: 1rem; opacity: 0.8; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-list { display: grid; gap: 0.9rem; max-width: 860px; }
.faq-list details {
  background: var(--lav-050);
  border: 1px solid var(--lav-200);
  border-radius: 14px;
  padding: 1.05rem 1.4rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 2.2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--berry);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Booking embed ---------- */
.embed-card {
  background: var(--white);
  border: 1px solid var(--lav-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(0.5rem, 2vw, 1.5rem);
  min-height: 560px;
}
.embed-fallback {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contact-list .ico {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--lav-100);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.contact-list strong { color: var(--ink); display: block; font-size: 0.95rem; }
.contact-list span, .contact-list a { font-size: 0.92rem; color: var(--muted); }
.contact-list a:hover { color: var(--berry); }

.socials { display: flex; gap: 0.8rem; margin-top: 1.6rem; }
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--lav-300);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all 0.2s ease;
}
.socials a:hover {
  background: var(--berry);
  border-color: var(--berry);
  color: var(--white);
  transform: translateY(-2px);
}
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--lav-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.contact-card h3 { margin-bottom: 1rem; }
.contact-card ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}
.contact-card ol li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  font-size: 0.95rem;
}
.contact-card ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lav-100);
  color: var(--berry);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--lav-300);
  padding: 2.5rem 0;
  font-size: 0.88rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-footer a { color: var(--lav-200); }
.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 1.4rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-figure { margin-top: 2.5rem; }
  .badge-cert { left: -4px; }
  .badge-loc { right: -4px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-grid, .phil-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--lav-200);
    box-shadow: var(--shadow-lift);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--lav-100);
  }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-badge { font-size: 0.72rem; padding: 0.5rem 0.75rem; }
  .badge-cert { max-width: 150px; }
  .badge-loc { max-width: 160px; }
  .brand span.name { display: none; }
}
