/* =========================================================
   Clínica Dental Coruscant — stylesheet
   ========================================================= */

:root {
  --pink-50:  #fff3f6;
  --pink-100: #ffe1ea;
  --pink-300: #ff9ebd;
  --pink-500: #f0578c;
  --pink-600: #d63d72;
  --pink-700: #ad2c58;
  --plum-900: #3a0d20;
  --ink:      #241521;
  --ink-soft: #5a4a54;
  --cream:    #fffaf9;
  --paper:    #ffffff;
  --line:     #f1dfe4;
  --mint:     #23b26d;
  --shadow-sm: 0 4px 16px rgba(58, 13, 32, .08);
  --shadow-md: 0 14px 40px rgba(58, 13, 32, .12);
  --shadow-lg: 0 24px 70px rgba(58, 13, 32, .18);
  --radius: 22px;
  --radius-sm: 14px;
  --ff: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --ff-script: 'Caveat', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }

p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1em; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink-600);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--pink-500);
  display: inline-block;
}

.section { padding: clamp(3.5rem, 7vw, 7rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-alt { background: linear-gradient(180deg, var(--pink-50), var(--cream) 70%); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37,211,102,.45); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--pink-500); color: var(--pink-600); }
.btn-light {
  background: #fff;
  color: var(--pink-700);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-sm { padding: .6rem 1.15rem; font-size: .84rem; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Top info bar ---------- */
.topbar {
  background: var(--plum-900);
  color: #f6dfe8;
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .55rem;
  flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--pink-300); }
.topbar .divider { opacity: .35; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 250, 249, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
header.site.scrolled { box-shadow: 0 6px 24px rgba(58,13,32,.08); border-color: var(--line); }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 42px; height: 42px; }
.brand-text { line-height: 1.1; }
.brand-text b { display: block; font-size: 1.08rem; letter-spacing: .01em; }
.brand-text span { display: block; font-family: var(--ff-script); font-size: 1.15rem; color: var(--pink-600); }

nav#mainnav ul { display: flex; align-items: center; gap: 2.1rem; }
nav#mainnav a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  padding-block: .3rem;
}
nav#mainnav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--pink-500);
  transition: right .25s ease;
}
nav#mainnav a:hover::after, nav#mainnav a.active::after { right: 0; }
nav#mainnav a.active { color: var(--pink-600); }

.nav-actions { display: flex; align-items: center; gap: .8rem; }
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: transform .25s ease, opacity .25s ease;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translateY(6px) rotate(45deg); }
.burger.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
  opacity: .55;
}
.hero::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle at 30% 30%, var(--pink-100), transparent 70%);
  top: -180px; right: -120px;
}
.hero::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle at 30% 30%, var(--pink-50), transparent 70%);
  bottom: -160px; left: -140px;
}
.hero .container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -.01em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--pink-500), var(--pink-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-stats {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 2.8rem;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-size: 1.7rem;
  color: var(--pink-700);
}
.hero-stats .stat span { font-size: .82rem; color: var(--ink-soft); }

.hero-art { position: relative; }
.hero-art .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: .9rem 1.15rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .85rem;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
}
.floating-card .ic {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-50); color: var(--pink-600); flex-shrink: 0;
}
.floating-card.c1 { top: 8%; left: -8%; }
.floating-card.c2 { bottom: 10%; right: -9%; animation-delay: 1.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--plum-900);
  color: #fff;
  overflow: hidden;
  padding-block: .8rem;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 26s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center;
  padding-inline: 2.2rem;
  font-size: .95rem; font-weight: 600;
  letter-spacing: .03em;
  color: var(--pink-100);
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; margin-left: 2.2rem; color: var(--pink-500); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card .ic {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-50));
  color: var(--pink-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.service-card .ic svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: .92rem; margin-bottom: 1.2rem; }
.service-card .more {
  font-size: .85rem;
  font-weight: 700;
  color: var(--pink-600);
  display: inline-flex; align-items: center; gap: .35rem;
  cursor: pointer;
  background: none; border: none; padding: 0;
}
.service-card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.service-card .more:hover svg { transform: translateX(4px); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo .ring {
  position: absolute; inset: -18px;
  border: 2px dashed var(--pink-300);
  border-radius: 34px;
  z-index: 0;
}
.about-photo img {
  position: relative; z-index: 1;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.about-badge {
  position: absolute; z-index: 2; bottom: -1.3rem; left: -1.3rem;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.2rem;
  font-size: .8rem;
}
.about-badge b { display: block; font-size: 1.5rem; color: var(--pink-700); font-family: var(--ff-script); }

.about-text h3.name { font-size: 1.9rem; margin-bottom: .15rem; }
.about-text .role { color: var(--pink-600); font-weight: 700; font-size: .95rem; margin-bottom: 1.2rem; display: block; }
.about-contact { display: flex; gap: 1.6rem; flex-wrap: wrap; margin: 1.3rem 0; font-size: .9rem; }
.about-contact a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.about-contact a:hover { color: var(--pink-600); }

.timeline { margin-top: 2rem; display: grid; gap: 1.1rem; }
.timeline .step { display: flex; gap: 1rem; align-items: flex-start; }
.timeline .yr {
  flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: #fff; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.timeline .step p { margin: .25rem 0 0; font-size: .92rem; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.filters button {
  border: 1px solid var(--line);
  background: #fff;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-size: .84rem; font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.filters button:hover { border-color: var(--pink-300); color: var(--pink-600); }
.filters button.active {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: #fff; border-color: transparent;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .tag {
  position: absolute; inset: auto 0 0 0;
  padding: .8rem .9rem .6rem;
  background: linear-gradient(0deg, rgba(58,13,32,.85), transparent);
  color: #fff; font-size: .78rem; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .tag { opacity: 1; transform: translateY(0); }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.gallery-item[hidden] { display: none; }

/* ---------- CTA appointment ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--plum-900), var(--pink-700));
  color: #fff;
  border-radius: 32px;
  padding: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.14), transparent 55%);
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); position: relative; }
.cta-band p { color: rgba(255,255,255,.82); position: relative; max-width: 48ch; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; position: relative; }
.cta-hours {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  position: relative;
}
.cta-hours h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pink-100); margin-bottom: 1rem; }
.cta-hours .row { display: flex; justify-content: space-between; font-size: .92rem; padding-block: .45rem; border-bottom: 1px dashed rgba(255,255,255,.18); }
.cta-hours .row:last-child { border-bottom: none; }

/* ---------- Location / map ---------- */
.location-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.location-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; display: flex; flex-direction: column; gap: 1.3rem;
}
.location-card .item { display: flex; gap: 1rem; }
.location-card .item .ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--pink-50); color: var(--pink-600);
  display: flex; align-items: center; justify-content: center;
}
.location-card .item h4 { font-size: .95rem; margin-bottom: .2rem; }
.location-card .item p { margin: 0; font-size: .9rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--plum-900);
  color: #e9c9d5;
  padding-top: 3rem;
}
/* the section right before the footer already ends in generous padding —
   drop its bottom padding so it doesn't double up with the footer's own */
.section:has(+ footer.site) {
  padding-bottom: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 38px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand b { color: #fff; font-size: 1.05rem; }
footer.site h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1rem; }
footer.site .flinks li { margin-bottom: .65rem; font-size: .9rem; }
footer.site .flinks a:hover { color: #fff; }
footer.site p.desc { font-size: .88rem; max-width: 34ch; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 1.4rem; font-size: .82rem; flex-wrap: wrap; gap: .6rem;
  color: rgba(233,201,213,.7);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating action buttons ---------- */
.fab-group {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 70;
  display: flex; flex-direction: column; gap: .8rem; align-items: flex-end;
}
.fab {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
}
.fab-whatsapp { background: #25d366; color: #fff; position: relative; }
.fab-whatsapp::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; opacity: .55;
  animation: pulse 2.2s ease-out infinite;
}
.fab-whatsapp svg { width: 28px; height: 28px; position: relative; z-index: 1; }
@keyframes pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.85); opacity: 0; }
}
.fab-top {
  background: #fff; color: var(--pink-700); border: 1px solid var(--line);
  width: 46px; height: 46px;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.fab-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-top svg { width: 20px; height: 20px; }

/* ---------- Modal (service details) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(36, 21, 33, .55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fff; border-radius: 26px; max-width: 640px; width: 100%;
  max-height: 85vh; overflow: auto;
  transform: translateY(20px) scale(.98);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-card img { width: 100%; height: 230px; object-fit: cover; }
.modal-body { padding: 1.8rem 2rem 2.2rem; }
.modal-body h3 { font-size: 1.5rem; }
.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}

.lightbox {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(20, 8, 15, .92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  padding: 2rem;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(900px, 100%); max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1.6rem; right: 1.6rem; }
.lightbox-nav.prev { left: 1.6rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.6rem; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .location-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  nav#mainnav { position: fixed; inset: 0; z-index: 55; background: var(--cream); padding: 7.5rem 1.5rem 2rem; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  nav#mainnav.open { transform: translateX(0); }
  nav#mainnav ul { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  nav#mainnav a { font-size: 1.1rem; }
  .burger { display: flex; }
  .nav-actions .btn-primary.desktop-only { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin-inline: auto; }
  .floating-card { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item.big { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-left, .topbar-right { justify-content: center; width: 100%; }
}
