:root {
  --bg: #f4fbfc;
  --surface: #ffffff;
  --surface-soft: #e8f7f9;
  --ink: #102f38;
  --muted: #607d85;
  --primary: #075b6d;
  --primary-2: #0c8ea0;
  --accent: #66d7df;
  --line: rgba(7, 91, 109, .14);
  --shadow: 0 24px 60px rgba(15, 66, 79, .12);
  --radius-lg: 34px;
  --radius-md: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 9%, rgba(102, 215, 223, .17), transparent 25%),
    radial-gradient(circle at 92% 18%, rgba(12, 142, 160, .11), transparent 22%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 251, 252, .82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  background: rgba(244, 251, 252, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px rgba(10, 55, 68, .07);
}
.navbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(145deg, #fff, #e6f7f9);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(7, 91, 109, .09);
}
.brand-icon svg { width: 29px; height: 29px; }
.brand-copy { display: grid; line-height: 1.15; min-width: 0; }
.brand-copy strong { font-size: 1rem; white-space: nowrap; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .74rem; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { padding: 10px 14px; border-radius: 12px; color: #365862; font-size: .93rem; font-weight: 750; transition: .22s ease; }
.main-nav a:hover { color: var(--primary); background: rgba(7, 91, 109, .07); }
.main-nav .nav-cta { margin-left: 8px; padding-inline: 18px; color: #fff; background: var(--primary); }
.main-nav .nav-cta:hover { color: #fff; background: #064c5b; transform: translateY(-1px); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: .22s ease; }

.hero { padding-top: 68px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 74px; }
.overline, .section-tag { margin: 0; color: var(--primary-2); font-size: .82rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 660px; margin: 18px 0 10px; font-size: clamp(3.35rem, 7vw, 6.25rem); line-height: .94; letter-spacing: -.055em; }
.hero h1 span { color: var(--primary-2); }
.doctor { margin: 20px 0 8px; font-size: clamp(1.28rem, 2.2vw, 1.7rem); font-weight: 850; }
.services-line { margin: 0; color: var(--muted); font-size: 1.02rem; font-weight: 650; }
.services-line span { margin: 0 10px; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 16px; font-weight: 850; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 16px 34px rgba(7, 91, 109, .22); }
.button-secondary { background: rgba(255, 255, 255, .72); border: 1px solid var(--line); }
.button-light { color: var(--primary); background: #fff; box-shadow: 0 14px 28px rgba(5, 42, 53, .15); }

.hero-art { min-height: 560px; display: grid; place-items: center; position: relative; }
.art-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(7, 91, 109, .12); pointer-events: none; }
.ring-one { inset: 7%; animation: spin 18s linear infinite; }
.ring-two { inset: 17%; border-style: dashed; animation: spin-reverse 15s linear infinite; }
.tooth-panel {
  position: relative;
  width: min(76%, 390px);
  aspect-ratio: .94;
  display: grid;
  place-items: center;
  border-radius: 44px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(229,247,249,.82));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 34px 74px rgba(7,91,109,.16), inset 0 1px 0 #fff;
}
.tooth-light { position: absolute; width: 68%; height: 68%; border-radius: 50%; background: radial-gradient(circle, rgba(102,215,223,.35), rgba(102,215,223,0) 65%); }
.tooth { position: relative; z-index: 2; width: 57%; filter: drop-shadow(0 18px 26px rgba(7,91,109,.13)); animation: float 5.2s ease-in-out infinite; }
.art-label { position: absolute; z-index: 3; padding: 10px 15px; border: 1px solid rgba(7,91,109,.09); border-radius: 13px; background: rgba(255,255,255,.92); box-shadow: 0 12px 26px rgba(7,91,109,.1); font-size: .8rem; font-weight: 850; }
.label-a { top: 18%; left: -8%; }
.label-b { right: -11%; bottom: 20%; }

.identity-section { padding: 18px 0 36px; }
.identity-card { display: flex; align-items: center; gap: 22px; padding: 27px 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.76); box-shadow: 0 16px 40px rgba(7,91,109,.06); }
.identity-monogram { flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); font-weight: 900; letter-spacing: .08em; }
.identity-card h2 { margin: 5px 0 4px; font-size: clamp(1.5rem, 3vw, 2.08rem); }
.identity-card p:last-child { margin: 0; color: var(--muted); }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2 { margin: 12px 0 0; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -.035em; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card { position: relative; min-height: 300px; overflow: hidden; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, #fff, #effafb); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.service-card::after { content: ""; position: absolute; right: -70px; bottom: -80px; width: 180px; height: 180px; border-radius: 50%; background: rgba(102,215,223,.16); }
.service-card:hover { transform: translateY(-7px); box-shadow: 0 32px 70px rgba(15,66,79,.16); }
.service-icon { width: 72px; height: 72px; display: grid; place-items: center; color: var(--primary); border-radius: 22px; background: var(--surface-soft); }
.service-icon svg { width: 40px; }
.service-number { position: absolute; top: 38px; right: 34px; color: #9eb9c0; font-size: 1.1rem; font-weight: 900; }
.service-card h3 { margin: 62px 0 20px; font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -.03em; }
.service-accent { display: block; width: 54px; height: 4px; border-radius: 10px; background: linear-gradient(90deg, var(--primary-2), var(--accent)); }

.contact { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #084b5a, #0b6d7e 58%, #0b8999); }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.12), transparent 24%), radial-gradient(circle at 90% 75%, rgba(102,215,223,.18), transparent 26%); pointer-events: none; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.section-tag-light { color: #98edf1; }
.contact h2 { margin: 12px 0 6px; font-size: clamp(2.6rem, 5vw, 4.55rem); line-height: 1; letter-spacing: -.05em; }
.contact-doctor { margin: 18px 0 7px; font-size: 1.35rem; font-weight: 850; }
.contact-services { margin: 0; color: rgba(255,255,255,.78); }
.contact-card { padding: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; background: rgba(255,255,255,.11); box-shadow: 0 28px 55px rgba(0,0,0,.13); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
.contact-label { display: block; color: #a0eef2; font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.phone { display: block; width: fit-content; margin: 12px 0 28px; font-size: clamp(1.85rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.03em; }

.site-footer { padding: 30px 0; color: #d7edf0; background: #062f39; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; }
.footer-brand { display: grid; }
.footer-brand span { margin-top: 3px; color: #8fb4bd; font-size: .82rem; }
.footer-nav { display: flex; gap: 14px; color: #a2c2c9; font-size: .82rem; font-weight: 750; }
.footer-nav a:hover, .footer-phone:hover { color: #fff; }
.footer-phone { font-weight: 850; }

.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 1200; width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: #25d366; border-radius: 20px; box-shadow: 0 18px 34px rgba(37,211,102,.34); transition: transform .22s ease; animation: pulse 2.5s ease-in-out infinite; }
.floating-whatsapp:hover { transform: translateY(-4px) scale(1.03); }
.floating-whatsapp svg { width: 31px; }

/* El sitio SIEMPRE es visible. Las animaciones solo ocultan elementos si JS se ejecutó correctamente. */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s ease; }
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-ready .reveal-delay { transition-delay: .1s; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-11px) rotate(1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 18px 34px rgba(37,211,102,.34), 0 0 0 0 rgba(37,211,102,.14); } 50% { box-shadow: 0 18px 34px rgba(37,211,102,.34), 0 0 0 12px rgba(37,211,102,0); } }

@media (max-width: 920px) {
  .container { width: min(100% - 30px, 760px); }
  .section { padding: 76px 0; }
  .hero { padding-top: 44px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 470px; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-copy, .contact-card { text-align: center; }
  .phone { margin-left: auto; margin-right: auto; }
  .contact-card { width: 100%; max-width: 590px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-items: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 760px) {
  .navbar { min-height: 74px; }
  .brand-icon { width: 42px; height: 42px; }
  .brand-copy strong { font-size: .94rem; }
  .brand-copy small { font-size: .69rem; }
  .menu-toggle { display: block; position: relative; z-index: 1002; }
  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 45px rgba(15,66,79,.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .main-nav a { width: 100%; padding: 13px 14px; text-align: left; }
  .main-nav .nav-cta { margin-left: 0; text-align: center; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero h1 { font-size: clamp(3rem, 17vw, 4.7rem); }
  .doctor { font-size: 1.2rem; }
  .services-line { font-size: .94rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-art { min-height: 400px; }
  .tooth-panel { width: 80%; border-radius: 34px; }
  .art-label { padding: 9px 11px; font-size: .72rem; }
  .label-a { left: -5%; top: 14%; }
  .label-b { right: -7%; bottom: 15%; }
  .identity-card { align-items: flex-start; padding: 23px; }
  .identity-monogram { width: 54px; height: 54px; border-radius: 16px; }
  .service-card { min-height: 250px; padding: 28px; }
  .service-number { top: 31px; right: 28px; }
  .service-card h3 { margin-top: 44px; }
  .contact-card { padding: 29px 22px; }
  .floating-whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 18px; }
}

@media (max-width: 470px) {
  .container { width: min(100% - 22px, 440px); }
  .section { padding: 62px 0; }
  .hero { padding-top: 28px; }
  .brand-copy small { display: none; }
  .hero-art { min-height: 340px; }
  .tooth-panel { width: 78%; }
  .tooth { width: 55%; }
  .art-label { max-width: 134px; text-align: center; line-height: 1.2; }
  .identity-card { gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js-ready .reveal { opacity: 1 !important; transform: none !important; }
}
