/* ============================================================================
   DENTAL COIQUE — styles.css v5 (Premium · Archetype 04 Glassmorphism Modern)
   Mobile-first breakpoints: 540 / 720 / 960 / 1280
   ============================================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --teal:       #08BCB5;
  --teal-mid:   #38CCC6;
  --teal-light: #87E8E1;
  --teal-dark:  #069d97;
  --teal-xdark: #056e6a;
  --orange:     #F7924D;
  --amber:      #F9AE4B;
  --navy:       #0D1B2A;
  --navy-2:     #162D44;
  --navy-3:     #1E3A5F;
  --ink:        #0F172A;
  --ink-soft:   #334155;
  --ink-mute:   #64748B;
  --border:     rgba(8,188,181,.13);
  --bg:         #FFFFFF;
  --bg-soft:    #F8FAFC;
  --bg-teal:    #EEF9F8;
  --space-lg:   4rem;
  --space-xl:   6rem;
  --space-2xl:  9rem;
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --radius:     1rem;
  --radius-sm:  .5rem;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 6px 28px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.15);
  --glass-bg:   rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.55);
  --trans:      .3s cubic-bezier(.4,0,.2,1);
}

/* ── 2. RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font: inherit; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
::selection { background: var(--teal); color: #fff; }
/* Defensive reveal guard — prevents invisible text if JS fails */
.reveal[data-split] { opacity: 1 !important; transform: none !important; }

/* ── 3. LAYOUT ─────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1260px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 540px)  { .container { padding-inline: 1.75rem; } }
@media (min-width: 960px)  { .container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 3rem; } }

.section { padding-block: var(--space-lg); }
@media (min-width: 720px)  { .section { padding-block: var(--space-xl); } }
@media (min-width: 1280px) { .section { padding-block: var(--space-2xl); } }

.section-header { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: 3rem; }
@media (min-width: 720px) { .section-header { margin-bottom: 4.5rem; } }

.section-eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .75rem;
}
.section-eyebrow--light { color: var(--teal-light); }

.section-header h2 {
  font-family: var(--ff-display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.15; color: var(--navy);
}
.section-header h2 em { font-style: italic; color: var(--teal); }
.section-sub { margin-top: .75rem; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-mute); }

/* ── 4. TYPE ─────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
p  { line-height: 1.7; color: var(--ink-soft); }

/* ── 5. BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.75rem; border-radius: 3rem;
  font-family: var(--ff-body); font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; border: 2px solid transparent;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), color var(--trans), border-color var(--trans);
  white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 20px rgba(8,188,181,.35); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 8px 30px rgba(8,188,181,.45); }
.btn-sm { padding: .6rem 1.35rem; font-size: .875rem; }
.btn-ghost-white { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-ghost-white:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); }
.btn-whatsapp { width: 100%; justify-content: center; background: #25D366; color: #fff; font-size: 1rem; padding: .9rem 2rem; box-shadow: 0 4px 18px rgba(37,211,102,.30); }
.btn-whatsapp:hover { background: #1ebe5d; box-shadow: 0 8px 28px rgba(37,211,102,.40); }

/* ── 6. GLASS ──────────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.glass-card-dark {
  background: rgba(22,45,68,.62); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-radius: var(--radius);
}

/* ── 7. CURSOR ──────────────────────────────────────────────────────────────── */
.cursor { pointer-events: none; position: fixed; top: 0; left: 0; z-index: 9999; }
.cursor-dot { position: absolute; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-ring { position: absolute; width: 36px; height: 36px; border: 1.5px solid rgba(8,188,181,.5); border-radius: 50%; transform: translate(-50%,-50%); transition: width .25s, height .25s, border-color .25s; }
.cursor--hover .cursor-ring { width: 56px; height: 56px; border-color: var(--teal); }
@media (hover: none) { .cursor { display: none; } }

/* ── 8. SPLASH ──────────────────────────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; background: var(--navy); z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
  animation: splashOut 4.5s ease forwards;
}
.splash.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashOut { 0%,88%{opacity:1}100%{opacity:0;visibility:hidden;pointer-events:none} }
.splash-inner { text-align: center; }
.splash-logo { width: 200px; margin-inline: auto; filter: brightness(0) invert(1); }
.splash-bar { width: 160px; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; margin: 1.5rem auto .75rem; overflow: hidden; }
.splash-fill { height: 100%; width: 0; background: var(--teal); border-radius: 2px; animation: splashFill 2.8s ease forwards; }
@keyframes splashFill { to { width: 100%; } }
.splash-sub { font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.35); }

/* ── 9. NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--trans), box-shadow var(--trans), padding var(--trans);
  padding-block: 1.25rem;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07), var(--shadow-sm); padding-block: .75rem;
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; max-width: 1260px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 960px) { .nav-inner { padding-inline: 2.5rem; } }

.nav-logo img { height: 64px; width: auto; filter: brightness(0) invert(1); transition: filter var(--trans); }
.nav.is-scrolled .nav-logo img { filter: none; }
@media (min-width: 960px) { .nav-logo img { height: 76px; } }

.nav-links { display: none; gap: .25rem; margin-left: auto; }
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-link {
  position: relative; padding: .45rem .85rem; font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,.85); transition: color var(--trans); border-radius: var(--radius-sm);
}
.nav-link::after {
  content: ''; position: absolute; bottom: .2rem; left: .85rem; right: .85rem;
  height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform var(--trans);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: #fff; }
.nav.is-scrolled .nav-link { color: var(--ink-soft); }
.nav.is-scrolled .nav-link:hover { color: var(--teal-dark); }

.nav-burger { display: flex; flex-direction: column; gap: 5px; padding: .5rem; margin-left: auto; border-radius: var(--radius-sm); }
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--trans), opacity var(--trans); }
.nav.is-scrolled .nav-burger span { background: var(--navy); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: none; flex-direction: column; gap: .25rem; padding: 1rem 1.25rem 1.5rem; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); }
.nav-mobile.is-open { display: flex; }
.nav-mobile a { padding: .75rem 1rem; font-weight: 500; color: var(--navy); border-radius: var(--radius-sm); transition: background var(--trans), color var(--trans); }
.nav-mobile a:hover { background: var(--bg-teal); color: var(--teal-dark); }
.nav-mobile .btn { margin-top: .5rem; justify-content: center; }

/* ── 10. HERO ───────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,27,42,.92) 0%, rgba(13,27,42,.75) 50%, rgba(13,27,42,.60) 100%); }
.hero-mesh {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 60% at 10% 80%, rgba(8,188,181,.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(247,146,77,.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 70% at 50% 10%, rgba(8,188,181,.08) 0%, transparent 60%);
  animation: meshFloat 9s ease-in-out infinite alternate;
}
@keyframes meshFloat { 0%{transform:scale(1) translate(0,0)} 50%{transform:scale(1.04) translate(2%,1%)} 100%{transform:scale(1.02) translate(-1%,2%)} }
.hero-grain { position: absolute; inset: 0; z-index: 2; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 180px; pointer-events: none; }

.hero-content { position: relative; z-index: 3; padding-top: 8rem; padding-bottom: 5rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 1.25rem; }
.hero-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 3px rgba(8,188,181,.25); animation: dotPulse 2.2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100%{box-shadow:0 0 0 3px rgba(8,188,181,.25)}50%{box-shadow:0 0 0 8px rgba(8,188,181,0)} }

.hero-title { font-family: var(--ff-display); font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.1; color: #fff; max-width: 780px; margin-bottom: 1.25rem; }
.hero-title em { font-style: italic; color: var(--teal-light); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.125rem); line-height: 1.75; color: rgba(255,255,255,.65); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-bottom: 3.5rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px); border-radius: .875rem; padding: 1.25rem 1rem; width: fit-content; max-width: 100%;
}
.trust-item { display: flex; flex-direction: column; align-items: center; padding: .5rem 2rem; min-width: 140px; }
.trust-item strong { font-size: 2.4rem; font-weight: 800; color: #fff; white-space: nowrap; line-height: 1.1; }
.trust-item span { font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); white-space: nowrap; margin-top: .3rem; }
.trust-sep { width: 1px; background: rgba(255,255,255,.15); margin-block: .5rem; align-self: stretch; }

.hero-scroll { position: absolute; bottom: 2.5rem; right: 2.5rem; z-index: 3; display: none; flex-direction: column; align-items: center; gap: .6rem; color: rgba(255,255,255,.4); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
@media (min-width: 720px) { .hero-scroll { display: flex; } }
.scroll-track { width: 1.5px; height: 40px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; }
.scroll-thumb { width: 100%; height: 50%; background: var(--teal); animation: scrollAnim 1.8s ease-in-out infinite; }
@keyframes scrollAnim { 0%{transform:translateY(-100%)} 50%{transform:translateY(0)} 100%{transform:translateY(100%)} }

/* ── 11. SERVICIOS ──────────────────────────────────────────────────────────── */
.servicios { background: var(--bg-soft); }
.servicios-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 540px)  { .servicios-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)  { .servicios-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .servicios-grid { gap: 1.75rem; } }

.sc-card { position: relative; overflow: hidden; padding: 1.75rem; transition: transform .3s, box-shadow .3s; border-top: 3px solid transparent; background-size: cover; background-position: center; }
.sc-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,30,40,.88) 0%, rgba(8,30,40,.55) 60%, rgba(8,30,40,.30) 100%); transition: background .3s; pointer-events: none; }
.sc-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.22); border-top-color: var(--teal); }
.sc-card:hover .sc-card-overlay { background: linear-gradient(to top, rgba(8,30,40,.92) 0%, rgba(8,30,40,.65) 60%, rgba(8,30,40,.40) 100%); }
.sc-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(8,188,181,.12), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 1; }
.sc-card:hover::before { opacity: 1; }
.sc-card > *:not(.sc-card-overlay) { position: relative; z-index: 2; }
.sc-keyword { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-light); margin-bottom: .35rem; }
.sc-card h3 { color: #fff; }
.sc-card p  { color: rgba(255,255,255,.8); }
.sc-badge { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); background: var(--bg-teal); padding: .15rem .6rem; border-radius: 2rem; margin-bottom: .75rem; border: 1px solid var(--border); }
.sc-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.sc-card p  { font-size: .9375rem; margin-bottom: 1.25rem; }
.sc-cta { font-size: .875rem; font-weight: 600; color: var(--teal-light); display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.sc-cta:hover { gap: .6rem; }
.sc-cta--red { color: #dc2626; }
.sc-card--urgente { border-left: 3px solid #ef4444; }
.sc-card--urgente:hover { border-top-color: #ef4444; }

/* ── 12. STATS BAND ─────────────────────────────────────────────────────────── */
.stats-band { position: relative; background: var(--navy-2); padding-block: 4.5rem; overflow: hidden; border-top: 1px solid rgba(8,188,181,.2); border-bottom: 1px solid rgba(8,188,181,.2); }
.stats-mesh { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 120% at 0% 50%, rgba(8,188,181,.18), transparent), radial-gradient(ellipse 60% 120% at 100% 50%, rgba(247,146,77,.1), transparent); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; text-align: center; position: relative; z-index: 1; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.stat-item strong { display: block; font-family: var(--ff-display); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; color: #fff; line-height: 1; }
.stat-item strong .count,
.trust-item strong .count { font-family: inherit; font-size: inherit; font-weight: inherit; color: inherit; }
.stat-item strong em { font-style: normal; color: var(--teal); }
.stat-item span { display: block; font-size: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: .75rem; }

/* ── 13. TECNOLOGÍA ─────────────────────────────────────────────────────────── */
.tecnologia { background: var(--bg); }
.tec-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 540px) { .tec-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .tec-grid { grid-template-columns: repeat(4, 1fr); } }
.tec-card { display: flex; flex-direction: column; padding: 1.75rem; gap: 1.25rem; transition: transform .3s, box-shadow .3s; }
.tec-card:hover { transform: translateY(-5px); box-shadow: 0 24px 52px rgba(0,0,0,.12); }
.tec-icon-wrap { width: 52px; height: 52px; background: var(--bg-teal); border-radius: .875rem; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); flex-shrink: 0; }
.tec-brand { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.tec-card h3 { font-size: 1.05rem; margin-block: .25rem .5rem; }
.tec-card p  { font-size: .9rem; }

/* ── 14. SCANNER ─────────────────────────────────────────────────────────────── */
.scanner-section { background: var(--navy); padding-block: var(--space-lg); overflow: hidden; position: relative; }
@media (min-width: 720px) { .scanner-section { padding-block: var(--space-xl); } }
.scanner-inner { display: flex; flex-direction: column; gap: 4rem; align-items: center; }
@media (min-width: 960px) {
  .scanner-inner { flex-direction: row; align-items: center; gap: 5rem; }
  .scanner-visual { flex: 0 0 auto; order: 2; }
  .scanner-text   { flex: 1; }
}
.scanner-visual { position: relative; width: 220px; flex-shrink: 0; margin-inline: auto; }
@media (min-width: 540px) { .scanner-visual { width: 260px; } }
@media (min-width: 960px) { .scanner-visual { width: 300px; margin-inline: 0; } }
.scanner-rings { position: absolute; inset: -40px; z-index: 0; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(8,188,181,.3); animation: ringPulse 4s ease-in-out infinite; }
.ring-2 { animation-delay: 1.3s; inset: -15px; border-color: rgba(8,188,181,.18); }
.ring-3 { animation-delay: 2.6s; inset: -30px; border-color: rgba(8,188,181,.08); }
@keyframes ringPulse { 0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.08);opacity:.5} }
.scanner-device { position: relative; z-index: 2; background: var(--navy-2); border-radius: 2.5rem; padding: .75rem; box-shadow: 0 0 0 1px rgba(8,188,181,.2), 0 0 60px rgba(8,188,181,.15), 0 20px 60px rgba(0,0,0,.6); aspect-ratio: 9 / 16; overflow: hidden; }
.scanner-video { width: 100%; height: 100%; object-fit: cover; border-radius: 1.75rem; }
.scanner-glow { position: absolute; z-index: 1; bottom: -40px; left: 50%; transform: translateX(-50%); width: 220px; height: 120px; background: radial-gradient(ellipse at center, rgba(8,188,181,.4), transparent 70%); pointer-events: none; filter: blur(20px); }
.scanner-text .section-eyebrow { display: block; }
.scanner-text h2 { font-family: var(--ff-display); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: .75rem; }
.scanner-text h2 em { font-style: italic; color: var(--teal-light); }
.scanner-text > p { color: rgba(255,255,255,.55); margin-bottom: 2rem; font-size: 1rem; }
.scanner-lista { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.scanner-lista li { display: flex; align-items: flex-start; gap: 1rem; }
.sl-check { flex-shrink: 0; width: 26px; height: 26px; background: rgba(8,188,181,.15); border: 1px solid rgba(8,188,181,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal); margin-top: .2rem; }
.scanner-lista strong { display: block; font-size: .9375rem; font-weight: 600; color: #fff; margin-bottom: .2rem; }
.scanner-lista span { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.5; }
.scanner-badges { display: flex; flex-wrap: wrap; gap: .625rem; }
.badge-pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-light); background: rgba(8,188,181,.12); border: 1px solid rgba(8,188,181,.2); padding: .3rem .9rem; border-radius: 2rem; }

/* ── 15. EQUIPO ─────────────────────────────────────────────────────────────── */
.equipo { background: var(--bg-soft); }
.equipo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (min-width: 720px)  { .equipo-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
@media (min-width: 1280px) { .equipo-grid { gap: 2.5rem; } }
.doctor-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dc-photo { overflow: hidden; aspect-ratio: 3/4; background: var(--bg-teal); }
.dc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.doctor-card:hover .dc-photo img { transform: scale(1.04); }
.dc-info { padding: 1.25rem 1rem; }
.dc-esp { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .35rem; }
.dc-info h3 { font-size: 1rem; margin-bottom: .5rem; }
.dc-info p  { font-size: .875rem; color: var(--ink-mute); }

/* ── 16. TESTIMONIOS ────────────────────────────────────────────────────────── */
.testimonios { position: relative; background: var(--navy); padding-block: var(--space-lg); overflow: hidden; }
@media (min-width: 720px) { .testimonios { padding-block: var(--space-xl); } }
.test-mesh { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(8,188,181,.08), transparent), radial-gradient(ellipse 50% 80% at 100% 50%, rgba(247,174,75,.05), transparent); }
.test-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 720px) { .test-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .test-grid { grid-template-columns: repeat(3, 1fr); } }
.test-card { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; cursor: default; }
.test-card:hover { transform: scale(1.03) translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.test-stars { font-size: 1.1rem; color: var(--amber); letter-spacing: .08em; }
.test-card p { font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,.7); flex: 1; font-style: italic; }
.test-card footer { display: flex; flex-direction: column; gap: .15rem; }
.test-card footer strong { font-size: 1rem; color: #fff; font-weight: 600; }
.test-card footer span  { font-size: .82rem; color: rgba(255,255,255,.4); letter-spacing: .05em; }

/* ── 17. SMILE BAND ─────────────────────────────────────────────────────────── */
.smile-band { position: relative; height: 300px; overflow: hidden; }
@media (min-width: 720px) { .smile-band { height: 420px; } }
.smile-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.smile-band-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,27,42,.7), rgba(8,188,181,.25)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.smile-band-overlay p { font-family: var(--ff-display); font-size: clamp(1.4rem, 4vw, 2.5rem); font-style: italic; font-weight: 700; color: #fff; line-height: 1.3; max-width: 640px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }

/* ── 18. NOSOTROS ────────────────────────────────────────────────────────────── */
.nosotros { background: var(--bg); }
.nosotros-inner { display: flex; flex-direction: column; gap: 3rem; align-items: center; }
@media (min-width: 960px) {
  .nosotros-inner { flex-direction: row; gap: 5rem; align-items: center; }
  .nosotros-foto { flex: 0 0 45%; }
  .nosotros-texto { flex: 1; }
}
.nosotros-foto { position: relative; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 480px; width: 100%; }
.nosotros-foto img { width: 100%; height: 540px; object-fit: cover; object-position: center top; display: block; }
@media (min-width: 960px) { .nosotros-foto img { height: 640px; } }
.nos-badge { position: absolute; bottom: 1.5rem; right: 1.5rem; background: var(--navy); border-radius: .875rem; padding: .75rem 1rem; text-align: center; border: 1px solid rgba(8,188,181,.2); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.nos-badge-num { display: block; font-family: var(--ff-display); font-size: 1.6rem; font-weight: 800; color: var(--amber); line-height: 1; }
.nos-badge-label { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: .2rem; }
.nosotros-texto .section-eyebrow { display: block; }
.nosotros-texto h2 { font-family: var(--ff-display); font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.2; color: var(--navy); margin-bottom: 1rem; }
.nosotros-texto h2 em { font-style: italic; color: var(--teal); }
.nosotros-texto p { margin-bottom: .875rem; }
.nos-lista { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.nos-lista li { display: flex; align-items: center; gap: .75rem; font-size: .9375rem; color: var(--ink-soft); font-weight: 500; }
.nos-check { flex-shrink: 0; width: 22px; height: 22px; background: var(--bg-teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); border: 1px solid var(--border); }

/* ── 19. CONTACTO ─────────────────────────────────────────────────────────── */
.contacto { position: relative; background: var(--navy-2); padding-block: var(--space-lg); overflow: hidden; }
@media (min-width: 720px) { .contacto { padding-block: var(--space-xl); } }
.contacto-mesh { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 100% at 0% 100%, rgba(8,188,181,.12), transparent), radial-gradient(ellipse 60% 80% at 100% 0%, rgba(247,146,77,.06), transparent); }
.contacto-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3rem; align-items: flex-start; }
@media (min-width: 960px) {
  .contacto-inner { flex-direction: row; gap: 4.5rem; align-items: flex-start; }
  .contacto-info { flex: 0 0 42%; }
  .contacto-form { flex: 1; }
}
.contacto-info .section-eyebrow { display: block; }
.contacto-info h2 { font-family: var(--ff-display); font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.2; color: #fff; margin-bottom: 1rem; }
.contacto-info h2 em { font-style: italic; color: var(--teal-light); }
.contacto-info > p { color: rgba(255,255,255,.55); margin-bottom: 2rem; }
.contacto-datos { display: flex; flex-direction: column; gap: 1rem; }
.dato-item { display: flex; align-items: flex-start; gap: .875rem; font-size: .9375rem; color: rgba(255,255,255,.65); line-height: 1.5; transition: color .2s; }
a.dato-item:hover { color: var(--teal-light); }
.dato-icon { flex-shrink: 0; width: 34px; height: 34px; background: rgba(8,188,181,.12); border: 1px solid rgba(8,188,181,.2); border-radius: .625rem; display: flex; align-items: center; justify-content: center; color: var(--teal); margin-top: .1rem; }
.dato-item small { font-size: .82rem; color: rgba(255,255,255,.38); }
.contacto-form { padding: 2rem 1.75rem; width: 100%; }
.contacto-form h3 { font-size: 1.25rem; color: #fff; margin-bottom: 1.5rem; font-family: var(--ff-display); }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: .05em; }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: .625rem; padding: .75rem 1rem; font-size: .9375rem;
  color: #fff; font-family: var(--ff-body); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.25); }
.form-group select { color: rgba(255,255,255,.7); }
.form-group select option { background: var(--navy-2); color: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,188,181,.18); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-note { text-align: center; font-size: .78rem; color: rgba(255,255,255,.3); margin-top: .875rem; }

/* ── 20. MAPA ───────────────────────────────────────────────────────────────── */
.mapa-section { position: relative; }
.mapa-wrap iframe { display: block; width: 100%; filter: grayscale(.2) contrast(1.05); }
.mapa-chip { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--navy); color: rgba(255,255,255,.8); font-size: .82rem; font-weight: 600; padding: .55rem 1.25rem; border-radius: 2rem; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,.3); border: 1px solid rgba(8,188,181,.2); }

/* ── 21. FAQ ────────────────────────────────────────────────────────────────── */
.faq-section { background: var(--bg-soft); }
.faq-list { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: .875rem; }
.faq-item { background: var(--bg); border: 1px solid rgba(0,0,0,.07); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--teal); box-shadow: 0 4px 18px rgba(8,188,181,.1); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; font-weight: 600; font-size: .9375rem; color: var(--navy); gap: 1rem; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: var(--teal); flex-shrink: 0; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.5rem 1.25rem; font-size: .9375rem; line-height: 1.7; color: var(--ink-soft); }

/* ── 22. FOOTER ─────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); padding-top: var(--space-lg); }
@media (min-width: 720px) { .footer { padding-top: var(--space-xl); } }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 540px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }
.footer-brand .nav-logo img { filter: brightness(0) invert(1); opacity: .85; height: 28px; margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.38); line-height: 1.7; margin-bottom: 1.25rem; }
.footer-ig-link { display: inline-flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.75); text-decoration: none; font-size: .9375rem; font-weight: 600; margin-bottom: 1rem; transition: color .2s; }
.footer-ig-link:hover { color: #E1306C; }
.footer-ig-link svg { flex-shrink: 0; }
.footer-social { display: flex; gap: .625rem; }
.footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,.07); border-radius: .5rem; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--teal); color: #fff; }
.footer-col h4 { font-family: var(--ff-body); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-contact-col address { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact-col address a,
.footer-contact-col address span { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.5; transition: color .2s; }
.footer-contact-col address a:hover { color: var(--teal-light); }
.footer-bottom { margin-top: var(--space-lg); border-top: 1px solid rgba(255,255,255,.07); padding-block: 1.5rem; font-size: .8rem; color: rgba(255,255,255,.25); }

/* ── 23. WA FLOAT ────────────────────────────────────────────────────────────── */
.wa-float { position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 900; width: 68px; height: 68px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.45); transition: transform .25s, box-shadow .25s; }
.wa-float:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.wa-tooltip { display: none; position: absolute; right: calc(100% + .6rem); background: var(--navy); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; padding: .4rem .9rem; border-radius: .5rem; box-shadow: var(--shadow-sm); }
.wa-float:hover .wa-tooltip { display: block; }
@media (min-width: 720px) { .wa-float { bottom: 2rem; right: 2rem; } }

/* ── 24. CHAT ────────────────────────────────────────────────────────────────── */
.chat-trigger { position: fixed; bottom: 1.25rem; right: 5.25rem; z-index: 900; width: 52px; height: 52px; background: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(8,188,181,.4); transition: transform .25s, background .2s; overflow: visible; }
.chat-trigger:hover { transform: scale(1.08) translateY(-2px); background: var(--teal-dark); }
@media (min-width: 720px) { .chat-trigger { bottom: 2rem; right: 4.5rem; } }
.icon-close { display: none; }
.chat-trigger.is-open .icon-chat  { display: none; }
.chat-trigger.is-open .icon-close { display: block; }
.chat-badge { position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; background: var(--orange); border-radius: 50%; font-size: .65rem; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.18)} }
.chat-badge.is-hidden { display: none; }
.chat-label { position: absolute; right: calc(100% + .6rem); background: var(--navy); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; padding: .35rem .85rem; border-radius: .5rem; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity .2s; }
.chat-trigger:hover .chat-label { opacity: 1; }

/* ── 25. REVEALS ────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-40px) translateY(0) !important; }
.reveal-right { transform: translateX(40px) translateY(0) !important; }
.reveal-scale { transform: scale(.88) translateY(0) !important; }
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible { transform: none !important; }

/* Scroll progress bar */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--teal), var(--amber)); z-index: 9999; transition: width .1s linear; pointer-events: none; border-radius: 0 2px 2px 0; }

/* Hero word rotator */
#hero-word { display: inline-block; color: var(--teal-light); transition: opacity .3s, transform .3s; }
#hero-word.word-out { opacity: 0; transform: translateY(-12px); }
#hero-word.word-in  { animation: wordIn .4s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes wordIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Active nav link */
.nav-link.is-active { color: var(--teal) !important; }
.nav-link.is-active::after { content: ''; position: absolute; bottom: 2px; left: .85rem; right: .85rem; height: 2px; background: var(--teal); border-radius: 2px; }
.servicios-grid .reveal:nth-child(1){transition-delay:0s}
.servicios-grid .reveal:nth-child(2){transition-delay:.08s}
.servicios-grid .reveal:nth-child(3){transition-delay:.16s}
.servicios-grid .reveal:nth-child(4){transition-delay:.24s}
.servicios-grid .reveal:nth-child(5){transition-delay:.32s}
.servicios-grid .reveal:nth-child(6){transition-delay:.40s}
.equipo-grid .reveal:nth-child(1){transition-delay:0s}
.equipo-grid .reveal:nth-child(2){transition-delay:.10s}
.equipo-grid .reveal:nth-child(3){transition-delay:.20s}
.equipo-grid .reveal:nth-child(4){transition-delay:.30s}
.tec-grid .reveal:nth-child(1){transition-delay:0s}
.tec-grid .reveal:nth-child(2){transition-delay:.08s}
.tec-grid .reveal:nth-child(3){transition-delay:.16s}
.tec-grid .reveal:nth-child(4){transition-delay:.24s}
.test-grid .reveal:nth-child(1){transition-delay:0s}
.test-grid .reveal:nth-child(2){transition-delay:.10s}
.test-grid .reveal:nth-child(3){transition-delay:.20s}
.stats-grid .reveal:nth-child(1){transition-delay:0s}
.stats-grid .reveal:nth-child(2){transition-delay:.07s}
.stats-grid .reveal:nth-child(3){transition-delay:.14s}
.stats-grid .reveal:nth-child(4){transition-delay:.21s}
.btn-magnetic { will-change: transform; }

/* ============================================================
   MOBILE — ajustes específicos para pantallas pequeñas
   ============================================================ */
@media (max-width: 539px) {

  /* Base */
  html { font-size: 16px; }
  .container { padding-inline: 1rem; }
  .section { padding-block: 3rem; }
  .section-header { margin-bottom: 2.5rem; }

  /* Nav */
  .nav-inner { padding-inline: 1rem; }
  .nav-logo img { height: 44px; }
  .nav-links { display: none; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-content { padding-top: 7rem; padding-bottom: 2rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 1rem; }
  .hero-sub { font-size: .975rem; margin-bottom: 1.5rem; }
  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Trust bar — scroll horizontal en móvil */
  .hero-trust { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; max-width: 100%; padding: .75rem .5rem; gap: 0; scrollbar-width: none; }
  .hero-trust::-webkit-scrollbar { display: none; }
  .trust-item { padding: .4rem 1.1rem; min-width: 110px; flex-shrink: 0; }
  .trust-item strong { font-size: 1.6rem; }
  .trust-item span { font-size: .72rem; }
  .trust-sep { margin-block: .3rem; }

  /* Stats */
  .stats-band { padding-block: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .stat-item strong { font-size: clamp(2rem, 8vw, 3rem); }
  .stat-item span { font-size: .78rem; }

  /* Servicios */
  .servicios-grid { grid-template-columns: 1fr; }
  .sc-card { padding: 1.35rem; }

  /* Tecnología */
  .tec-grid { grid-template-columns: 1fr; }
  .tec-card { min-height: 200px; }

  /* Scanner */
  .scanner-section { padding-block: 3rem; }
  .scanner-inner { gap: 2.5rem; }
  .scanner-visual { width: 180px; }
  .scanner-lista { gap: 1rem; }

  /* Equipo */
  .equipo-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .member-img { height: 160px; }
  .member-name { font-size: .875rem; }
  .member-esp { font-size: .75rem; }

  /* Testimonios */
  .test-grid { grid-template-columns: 1fr; }
  .test-card { padding: 1.35rem; }

  /* Smile band */
  .smile-band { height: 240px; }
  .smile-band-overlay p { font-size: clamp(1.1rem, 5vw, 1.5rem); }

  /* Contacto */
  .contacto-inner { gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }

  /* FAQ */
  .faq-item summary { font-size: .9375rem; padding: 1rem; }
  .faq-body { font-size: .9rem; padding: .75rem 1rem 1rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand .nav-logo img { height: 36px; }

  /* WhatsApp y chatbot — separados en móvil */
  .wa-float { bottom: 1.25rem; right: 1.25rem; width: 58px; height: 58px; }
  .wa-float svg { width: 32px; height: 32px; }
  .chat-trigger { bottom: 1.25rem; left: 1.25rem; width: 56px; height: 56px; }

  /* Chatbot panel — full width en móvil */
  .chat-panel { width: calc(100vw - 2rem); left: 1rem; right: 1rem; bottom: 5rem; max-height: 75vh; }

  /* Page heros (subpáginas) */
  .page-hero { min-height: 55vh; }
  .page-hero-content { padding-top: 5rem; }
  .page-hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .page-hero-badges { flex-wrap: wrap; gap: .4rem; }
  .badge-pill { font-size: .7rem; padding: .3rem .7rem; }
}

@media (max-width: 380px) {
  html { font-size: 15px; }
  .trust-item { min-width: 95px; padding: .4rem .75rem; }
  .trust-item strong { font-size: 1.35rem; }
  .equipo-grid { grid-template-columns: 1fr; }
}
