/* =========================================================
   DENTIGLOW — Stylesheet
   Rebrand from "Dentimed Santa Rosa" -> "Dentiglow"
   Token system below; everything derives from these vars.
   ========================================================= */

:root {
  /* Color — locked to the approved Dentiglow palette. Only these five. */
  --turquesa: #18c7c8;       /* principal */
  --turquesa-dark: #12a0a1;  /* shade of turquesa, for hover states only */
  --azul: #1457b8;           /* títulos y botones */
  --azul-oscuro: #0b2a4a;    /* texto secundario / fondos oscuros */
  --blanco: #ffffff;         /* fondos y espacios */
  --gris-claro: #f4f6f8;     /* fondos de apoyo */
  --linea: #e2e8ed;          /* bordes, tono de gris-claro */
  --muted: #5d7285;          /* tinte de azul-oscuro para texto secundario suave */

  /* Type — una sola familia: Montserrat (ExtraBold / SemiBold / Regular) */
  --font-display: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;

  /* Layout */
  --max: 1180px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --nav-h: 84px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--azul-oscuro);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--turquesa-dark);
}

.eyebrow.on-dark {
  color: var(--turquesa);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  color: var(--azul);
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

p {
  margin: 0;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* -------------------- Glow signature -------------------- */
/* The recurring motif: a soft radial halo that ties every
   "Dentiglow" touchpoint back to the brand's literal name. */
.glow-ring {
  position: relative;
}

.glow-ring::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(24, 199, 200, 0.28) 0%, transparent 70%);
  filter: blur(4px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  border-radius: 50%;
}

.glow-ring.is-lit::before,
.glow-ring:hover::before {
  opacity: 1;
}

/* -------------------- Nav -------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(251, 253, 252, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.is-scrolled {
  background: rgba(251, 253, 252, 0.92);
  border-bottom-color: var(--linea);
  box-shadow: 0 8px 30px rgba(11, 42, 74, 0.06);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--azul);
  letter-spacing: 0.01em;
}

.brand-name span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquesa-dark);
}

.footer-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand-mark img {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 400;
}

.nav-links a:not(.btn) {
  color: var(--azul);
  position: relative;
  padding: 4px 0;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--turquesa);
  transition: width 0.25s var(--ease);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--azul);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--turquesa);
  color: var(--blanco);
  box-shadow: 0 10px 30px rgba(24, 199, 200, 0.28);
}

.btn-primary:hover {
  background: var(--turquesa-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(24, 199, 200, 0.36);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--azul);
  border: 1.5px solid var(--linea);
}

.btn-outline:hover {
  border-color: var(--turquesa);
  color: var(--turquesa-dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--azul-oscuro);
}

.hero-bg-orb {
  position: absolute;
  top: -8%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 199, 200, 0.22) 0%, transparent 72%);
  filter: blur(8px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(24, 199, 200, 0.12);
  border: 1px solid rgba(24, 199, 200, 0.35);
  color: var(--turquesa);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--blanco);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  margin-top: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--turquesa);
}

.hero-lede {
  color: rgba(226, 238, 255, 0.78);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 480px;
  margin-top: 22px;
}

.hero-transition-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(226, 238, 255, 0.55);
}

.hero-transition-note strong {
  color: rgba(226, 238, 255, 0.85);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--blanco);
}

.hero-stat span {
  font-size: 0.82rem;
  color: rgba(226, 238, 255, 0.6);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual svg,
.hero-visual img {
  width: 100%;
  max-width: 380px;
  height: auto;
  position: relative;
  z-index: 2;
}

/* -------------------- Scheduling bar (multi-channel funnel) -------------------- */
/* IMPORTANT: this block is the single funnel entry point across the site.
   Every "Agendar" CTA points here or replicates these three channels.
   When self-service booking is ready, add a 4th option/replace WhatsApp
   as primary without touching the rest of the page. */
.schedule-bar {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(11, 42, 74, 0.08);
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.schedule-bar-intro strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--azul);
  display: block;
  margin-bottom: 6px;
}

.schedule-bar-intro span {
  color: var(--muted);
  font-size: 0.92rem;
}

.schedule-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--linea);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.schedule-option:hover {
  border-color: var(--turquesa);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(11, 42, 74, 0.08);
}

.schedule-option .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blanco);
}

.schedule-option.whatsapp .icon { background: #25d366; }
.schedule-option.phone .icon { background: var(--azul); }
.schedule-option.instagram .icon { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }

.schedule-option .icon svg {
  width: 20px;
  height: 20px;
}

.schedule-option-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--azul);
}

.schedule-option-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* -------------------- Wisdom teeth (dark split) -------------------- */
.split-dark {
  background: var(--azul-oscuro);
  color: var(--blanco);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.split-card h3 {
  color: var(--blanco);
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.split-card p {
  color: rgba(226, 238, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 28px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.check-item .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--turquesa);
  color: var(--azul-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.split-text .eyebrow {
  margin-bottom: 14px;
  display: block;
}

.split-text h2 {
  color: var(--blanco);
  margin-bottom: 20px;
}

.split-text p {
  color: rgba(226, 238, 255, 0.65);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* -------------------- Services grid -------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(11, 42, 74, 0.1);
  border-color: rgba(24, 199, 200, 0.3);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--turquesa);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--blanco);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* -------------------- Team -------------------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.team-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(11, 42, 74, 0.12);
}

.team-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.team-text .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.team-text h2 {
  margin-bottom: 20px;
}

.team-text p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.team-mini-stats {
  display: flex;
  gap: 40px;
}

.team-mini-stats div strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--azul);
  display: block;
}

.team-mini-stats div span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* -------------------- Promos -------------------- */
.promos-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.promo-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  color: var(--blanco);
}

.promo-card.primary {
  background: var(--turquesa);
}

.promo-card.secondary {
  background: var(--azul-oscuro);
}

.promo-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.promo-card h3 {
  color: var(--blanco);
  font-size: 1.9rem;
  margin-bottom: 12px;
  max-width: 320px;
}

.promo-card p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 26px;
}

/* -------------------- FAQ -------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--linea);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--azul);
}

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--linea);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--azul);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq-icon::before {
  width: 12px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 12px;
}

.faq-item.is-open .faq-icon {
  border-color: var(--turquesa);
  transform: rotate(180deg);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer p {
  padding: 0 4px 26px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 660px;
}

/* -------------------- Location -------------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.location-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(24, 199, 200, 0.12);
  color: var(--turquesa-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon svg {
  width: 20px;
  height: 20px;
}

.location-item strong {
  display: block;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 4px;
}

.location-item p, .location-item span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.map-frame {
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(11, 42, 74, 0.12);
  border: 4px solid var(--blanco);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* -------------------- Footer -------------------- */
.footer {
  background: var(--azul-oscuro);
  color: rgba(226, 238, 255, 0.55);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin-top: 16px;
  line-height: 1.7;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col strong {
  display: block;
  font-weight: 600;
  color: rgba(226, 238, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.footer-col ul a:hover {
  color: var(--turquesa);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.82rem;
}

/* -------------------- Floating WhatsApp -------------------- */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  background: #25d366;
  color: var(--blanco);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.42);
  transition: transform 0.25s var(--ease);
}

.float-whatsapp:hover {
  transform: scale(1.08);
}

.float-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* -------------------- Reveal on scroll -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .team-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual svg,
  .hero-visual img {
    max-width: 260px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .promos-grid {
    grid-template-columns: 1fr;
  }

  .schedule-bar {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--blanco);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--linea);
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-links a:not(.btn) {
    width: 100%;
    padding: 14px 0;
  }

  .nav-links .btn {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section {
    padding: 64px 0;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .team-photo img {
    height: 320px;
  }

  .map-frame {
    height: 320px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
