/* ═══════════════════════════════════════════════
   DRA. ROSSANA GÓMEZ — REDESIGN 2025
   Editorial Premium · Periodontics Clinic
   Fonts: Instrument Serif + Outfit
   Spacing: 4pt system (8/12/16/20/24/32/48/64/96)
═══════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────── */
:root {
  /* Palette — warm clinical */
  --clr-bg:        #F6F4F0;
  --clr-surface:   #FEFDFB;
  --clr-dark:      #1A1A1A;
  --clr-dark-2:    #2C2C2C;
  --clr-text:      #3A3A3A;
  --clr-muted:     #8A8780;
  --clr-border:    #E8E5DF;
  --clr-accent:    #2A9D8F;
  --clr-accent-dk: #228176;
  --clr-accent-bg: #E8F5F3;
  --clr-rose:      #C07A7A;
  --clr-rose-bg:   #FAF0EF;
  --clr-warm:      #D4A574;
  --clr-hero-bg:   #0E1A26;
  --clr-wa:        #D48C9B; /* logo pink — used for WhatsApp CTAs */
  --clr-wa-dk:     #C06E80;

  /* Typography */
  --ff-display: 'Lora', serif;
  --ff-body:    'Outfit', sans-serif;

  /* Spacing — 4pt base */
  --s1:  8px;  --s15: 12px; --s2: 16px; --s25: 20px;
  --s3: 24px;  --s4:  32px; --s5: 48px; --s6:  64px;
  --s7: 96px;

  /* Radii */
  --r-xs: 6px;  --r-sm: 10px; --r-md: 16px;
  --r-lg: 24px; --r-xl: 32px; --r-full: 999px;

  /* Shadows */
  --sh-xs: 0 1px 3px rgba(26,26,26,.04);
  --sh-sm: 0 2px 8px rgba(26,26,26,.06);
  --sh-md: 0 8px 24px rgba(26,26,26,.08);
  --sh-lg: 0 16px 48px rgba(26,26,26,.10);

  /* Motion */
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-in: cubic-bezier(.7,0,.84,0);
  --t-fast: 200ms;
  --t-mid:  350ms;
  --t-slow: 500ms;
}

/* ─── RESET ──────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
}
img { display:block; max-width:100%; height:auto; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }

/* ─── CONTAINER ──────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

/* ─── TYPOGRAPHY ─────────────────────────────── */
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--clr-dark);
  letter-spacing: -.01em;
}
.section-title em {
  font-style: italic;
  color: var(--clr-accent);
}
.section-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--clr-muted);
  line-height: 1.7;
  max-width: 480px;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--s2);
}
.tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ─── SECTION HEADERS ────────────────────────── */
.section-header {
  margin-bottom: var(--s6);
}
.section-header-center {
  text-align: center;
}
.section-header-center .tag { justify-content: center; }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-full);
  padding: 12px 24px;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clr-dark);
  color: var(--clr-bg);
}
.btn-primary:hover {
  background: var(--clr-dark-2);
  box-shadow: var(--sh-md);
}
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-outline {
  background: transparent;
  color: var(--clr-dark);
  border: 1.5px solid var(--clr-border);
}
.btn-outline:hover {
  border-color: var(--clr-dark);
  background: var(--clr-surface);
}
.btn-wa {
  background: var(--clr-wa);
  color: #fff;
  padding: 15px 28px;
  font-size: 15px;
}
.btn-wa:hover {
  background: var(--clr-wa-dk);
  box-shadow: 0 8px 24px rgba(212,140,155,.35);
}
.btn-teal {
  background: var(--clr-accent);
  color: #fff;
}
.btn-teal:hover {
  background: var(--clr-accent-dk);
  box-shadow: 0 8px 24px rgba(42,157,143,.3);
}
.btn-dark {
  background: var(--clr-dark);
  color: var(--clr-bg);
}
.btn-dark:hover {
  background: var(--clr-dark-2);
  box-shadow: var(--sh-md);
}
.btn-white {
  background: #fff;
  color: var(--clr-dark);
}
.btn-white:hover {
  background: var(--clr-bg);
  box-shadow: var(--sh-md);
}
.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ─── NAV ARROWS ─────────────────────────────── */
.nav-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast) var(--ease);
}
.nav-arrow:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.nav-arrow-active { background: var(--clr-dark); border-color: var(--clr-dark); color: var(--clr-bg); }
.nav-arrow-active:hover { background: var(--clr-dark-2); }

/* ─── HERO ANIMATION ─────────────────────────── */
@keyframes hiUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hi {
  animation: hiUp .7s var(--ease) both;
  animation-delay: var(--d, 0s);
}

/* ─── SCROLL REVEAL ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes forceVisible { to { opacity:1; transform:translateY(0); } }
.reveal { animation: forceVisible .001s 1.2s both; }
.reveal.is-visible { animation: none; }


/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background var(--t-mid), box-shadow var(--t-mid), backdrop-filter var(--t-mid);
}
.navbar.is-scrolled {
  background: rgba(246,244,240,.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 var(--clr-border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s3);
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.nav-logo { flex-shrink: 0; }
.logo-img { height: 36px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--r-full);
  color: var(--clr-text);
  transition: background var(--t-fast), color var(--t-fast);
  letter-spacing: .01em;
}
.nav-link:hover { background: rgba(0,0,0,.05); }
.nav-link.is-active {
  background: var(--clr-dark);
  color: var(--clr-bg);
}

/* Hero transparent state */
.navbar:not(.is-scrolled) .nav-link { color: rgba(255,255,255,.75); }
.navbar:not(.is-scrolled) .nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.navbar:not(.is-scrolled) .nav-link.is-active { background: rgba(255,255,255,.18); color: #fff; }
.navbar:not(.is-scrolled) .nav-cta {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.navbar:not(.is-scrolled) .nav-cta:hover { background: rgba(255,255,255,.22); }
.nav-cta { margin-left: auto; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: var(--s2);
  padding: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.navbar:not(.is-scrolled) .hamburger { color: #fff; }
.navbar.is-scrolled .hamburger { color: var(--clr-dark); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s3) var(--s3) var(--s4);
  background: rgba(246,244,240,.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--clr-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-mid) var(--ease);
}
.nav-drawer.is-open { display: flex; max-height: 420px; }
.nav-drawer ul { display: flex; flex-direction: column; gap: var(--s1); }
.nav-drawer a {
  font-size: 15px;
  font-weight: 500;
  padding: 10px var(--s2);
  border-radius: var(--r-sm);
  color: var(--clr-text);
  transition: background var(--t-fast);
}
.nav-drawer a:hover { background: rgba(0,0,0,.04); }


/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--clr-hero-bg);
  color: #fff;
  overflow: hidden;
}
/* Subtle gradient overlays */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -150px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,157,143,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,122,122,.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s6);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 120px var(--s3) var(--s5);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
  width: fit-content;
}
.label-dot {
  width: 6px; height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.4; transform:scale(1.5); }
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
}
.hero-title em {
  font-style: italic;
  color: var(--clr-accent);
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  max-width: 440px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s15);
  margin-top: var(--s1);
}
.hero-actions .btn-primary {
  background: var(--clr-accent);
  color: #fff;
}
.hero-actions .btn-primary:hover {
  background: var(--clr-accent-dk);
  box-shadow: 0 8px 32px rgba(42,157,143,.3);
}
.hero-actions .btn-outline {
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  background: transparent;
}
.hero-actions .btn-outline:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  background: rgba(255,255,255,.06);
}

/* Social proof */
.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s2);
}
.proof-avatars { display: flex; }
.proof-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
}
.proof-av + .proof-av { margin-left: -8px; }
.proof-av-1 { background: linear-gradient(135deg, #2A9D8F, #1a7a6f); }
.proof-av-2 { background: linear-gradient(135deg, #C07A7A, #a06060); }
.proof-av-3 { background: linear-gradient(135deg, #D4A574, #b88c5c); }
.proof-text {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.4;
}
.proof-text strong { color: rgba(255,255,255,.9); }
.proof-stars {
  display: block;
  color: #E8B84B;
  font-size: 12px;
  letter-spacing: 1px;
}
.proof-stars em {
  font-style: normal;
  color: rgba(255,255,255,.7);
  margin-left: 4px;
}

/* Hero visual — right column */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img-main {
  position: relative;
  width: 460px;
  height: 560px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(170deg, #a8d8d4 0%, #5aada8 45%, #23857f 100%);
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
}
.hero-img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-img-badge {
  position: absolute;
  bottom: var(--s2); left: var(--s2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.92);
  color: var(--clr-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}
.hero-img-badge svg { color: #E8B84B; }

/* Floating card */
.hero-float-card {
  position: absolute;
  bottom: 40px; left: -40px;
  display: flex;
  align-items: center;
  gap: var(--s15);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(20px);
  border-radius: var(--r-lg);
  padding: var(--s2) var(--s25);
}
.float-card-icon {
  width: 44px; height: 44px;
  background: rgba(42,157,143,.2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  flex-shrink: 0;
}
.hero-float-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.hero-float-card span {
  font-size: 12px;
  color: rgba(255,255,255,.6);
}

/* Marquee */
.hero-marquee {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--s2) 0;
  overflow: hidden;
}
/* Blend fade edges — from hero bg to transparent */
.hero-marquee::before,
.hero-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 1;
  pointer-events: none;
}
.hero-marquee::before {
  left: 0;
  background: linear-gradient(to right, #0E1A26 0%, transparent 100%);
}
.hero-marquee::after {
  right: 0;
  background: linear-gradient(to left, #0E1A26 0%, transparent 100%);
}
/* Inner wrapper — what actually animates */
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marqueeScroll 57s linear infinite;
}
/* Each track — one full set of items */
.marquee-track {
  display: flex;
  gap: var(--s4);
  flex-shrink: 0;
  padding-right: var(--s4); /* trailing spacer = gap width → seamless seam */
}
.marquee-track span {
  font-family: var(--ff-display);
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-dot { color: rgba(255,255,255,.35) !important; font-style: normal !important; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════════
   METRICS STRIP
═══════════════════════════════════════════════ */
.metrics-strip {
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--clr-border);
}
.metrics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s5);
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.metric-num {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--clr-dark);
  line-height: 1;
  letter-spacing: -.02em;
}
.metric-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-muted);
  letter-spacing: .02em;
}
.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--clr-border);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
.about {
  padding: var(--s7) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s6);
  align-items: center;
}
.about-media { position: relative; }
.about-img-stack { position: relative; height: 480px; }
.about-img {
  position: absolute;
  border-radius: var(--r-lg);
  object-fit: cover;
  box-shadow: var(--sh-md);
}
.about-img-1 {
  top: 0; left: 0;
  width: 320px; height: 390px;
  z-index: 1;
}
.about-img-2 {
  bottom: 0; right: 0;
  width: 250px; height: 300px;
  z-index: 2;
  border: 4px solid var(--clr-bg);
}
.about-content {
  display: flex;
  flex-direction: column;
}
.about-lead {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: var(--s4);
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--s25);
  margin-bottom: var(--s4);
}
.about-feat {
  display: flex;
  align-items: flex-start;
  gap: var(--s15);
}
.feat-icon {
  width: 40px; height: 40px;
  background: var(--clr-accent-bg);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  flex-shrink: 0;
}
.feat-icon-num {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 500;
}
.about-feat strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 2px;
}
.about-feat span {
  font-size: 13px;
  color: var(--clr-muted);
}


/* ═══════════════════════════════════════════════
   SERVICES — Full-width carousel
═══════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   SERVICES — Two-column interactive layout
═══════════════════════════════════════════════ */
.services {
  padding: var(--s7) 0;
  background: var(--clr-bg);
}
.svc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.svc-intro {
  font-size: 15px;
  color: var(--clr-muted);
  line-height: 1.65;
  text-align: right;
  max-width: 260px;
}

/* Two-column layout */
.svc-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--s3);
  align-items: stretch;
}

/* ── Left: tab list ─────────────────────────── */
.svc-nav {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--clr-surface);
}
.svc-tab {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s3);
  border-bottom: 1px solid var(--clr-border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
  position: relative;
  border-left: 3px solid transparent;
}
.svc-tab:last-child { border-bottom: none; }
.svc-tab:hover { background: var(--clr-bg); }
.svc-tab.is-active {
  background: #fff;
  border-left-color: var(--clr-accent);
}
.svc-tab-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  color: var(--clr-muted);
  width: 24px;
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.svc-tab.is-active .svc-tab-num { color: var(--clr-accent); }
.svc-tab-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.svc-tab-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-dark);
  line-height: 1.2;
  letter-spacing: -.01em;
  transition: color var(--t-fast);
}
.svc-tab.is-active .svc-tab-title { color: var(--clr-dark); }
.svc-tab-sub {
  font-size: 12px;
  color: var(--clr-muted);
  line-height: 1.3;
}
.svc-tab-arrow {
  color: var(--clr-muted);
  flex-shrink: 0;
  transition: transform var(--t-fast), color var(--t-fast);
  opacity: 0;
}
.svc-tab:hover .svc-tab-arrow,
.svc-tab.is-active .svc-tab-arrow {
  opacity: 1;
  color: var(--clr-accent);
}
.svc-tab.is-active .svc-tab-arrow {
  transform: rotate(0deg);
}

/* ── Right: detail panel ────────────────────── */
.svc-panel {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  min-height: 460px;
  background: var(--clr-dark);
}
/* Background image */
.svc-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: opacity .4s ease;
}
/* Dark gradient overlay */
.svc-panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(10,20,30,.93) 0%,
    rgba(10,20,30,.78) 60%,
    rgba(10,20,30,.55) 100%
  );
}
.svc-panel-inner {
  position: relative;
  z-index: 2;
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  height: 100%;
  box-sizing: border-box;
}
/* Decorative large number */
.svc-panel-deco {
  position: absolute;
  bottom: -20px;
  right: var(--s3);
  font-family: var(--font-display);
  font-size: 160px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.svc-panel-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-accent);
}
.svc-panel-icon {
  width: 52px; height: 52px;
  background: rgba(42,157,143,.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  flex-shrink: 0;
}
.svc-panel-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-top: var(--s1);
}
.svc-panel-desc {
  font-size: 15px;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
}
.svc-panel-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.svc-panel-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}
.svc-panel-features li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: rgba(42,157,143,.2);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A9D8F' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
/* Panel content fade transition */
.svc-panel-inner {
  animation: svcFadeIn .35s ease both;
}
@keyframes svcFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-intro { text-align: left; max-width: 400px; }
  .svc-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--r-lg);
  }
  .svc-tab { border-right: 1px solid var(--clr-border); }
  .svc-tab:nth-child(even) { border-right: none; }
  .svc-panel { min-height: 380px; }
}
@media (max-width: 640px) {
  .svc-header { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .svc-intro { text-align: left; }
  .svc-nav { grid-template-columns: 1fr; }
  .svc-tab { border-right: none; }
  .svc-panel-deco { font-size: 100px; }
}


/* ═══════════════════════════════════════════════
   INSTAGRAM
═══════════════════════════════════════════════ */
.instagram {
  padding: var(--s7) 0;
  background: var(--clr-bg);
}
.ig-sub {
  font-size: 16px;
  color: var(--clr-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: var(--s2) auto 0;
  text-align: center;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  max-width: 900px;
  margin: var(--s5) auto 0;
}
.ig-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
  background: var(--clr-hero-bg);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.ig-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-mid) var(--ease);
}
.ig-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(14,26,38,.65) 0%, rgba(14,26,38,.05) 40%, rgba(14,26,38,.2) 100%);
  transition: background var(--t-mid) var(--ease);
}
.ig-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.ig-tile:hover img {
  transform: scale(1.06);
}
.ig-tile:hover::before {
  background: rgba(14,26,38,.5);
}
.ig-tile-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  transition: transform var(--t-mid) var(--ease), background var(--t-fast);
}
.ig-tile:hover .ig-tile-icon {
  transform: scale(1.12);
  background: rgba(255,255,255,.26);
}


/* ═══════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════ */
.testimonials {
  padding: var(--s7) 0;
}
.testi-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s6);
  align-items: start;
}
.testi-header {
  display: flex;
  flex-direction: column;
}
.testi-nav {
  display: flex;
  align-items: center;
  gap: var(--s15);
  margin-top: var(--s4);
}
.testi-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.testi-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-border);
  transition: all var(--t-fast);
  cursor: pointer;
}
.testi-dot.is-active {
  background: var(--clr-accent);
  transform: scale(1.4);
}

.testi-card {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--s5);
}
.testi-quote-icon {
  position: absolute;
  top: var(--s4); left: var(--s4);
  color: var(--clr-dark);
}
.testi-text {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--clr-dark);
  margin-bottom: var(--s4);
  position: relative;
  z-index: 1;
}
.testi-text strong { font-weight: 700; }
.testi-author {
  display: flex;
  align-items: center;
  gap: var(--s15);
}
.testi-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), #1a7a6f);
  flex-shrink: 0;
}
.author-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-dark);
}
.author-spec {
  display: block;
  font-size: 13px;
  color: var(--clr-muted);
}


/* ═══════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════ */
.blog {
  padding: var(--s7) 0;
  background: var(--clr-surface);
}
.blog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--s6);
  gap: var(--s4);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.blog-card {
  background: var(--clr-bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.blog-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.blog-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.blog-card:hover .blog-img { transform: scale(1.05); }
.blog-tag {
  position: absolute;
  top: var(--s15); left: var(--s15);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(246,244,240,.92);
  border-radius: var(--r-full);
  padding: 5px 12px;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.blog-body {
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s15);
}
.blog-date {
  font-size: 12px;
  color: var(--clr-muted);
}
.blog-card h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--clr-dark);
  line-height: 1.35;
}
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-accent);
  transition: gap var(--t-fast);
}
.blog-link:hover { gap: 10px; }

/* Blog Newsletter strip */
.blog-newsletter {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--s4) var(--s5);
  margin-top: var(--s4);
}
.blog-nl-icon {
  width: 48px; height: 48px;
  background: var(--clr-teal-bg);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-teal);
  flex-shrink: 0;
}
.blog-nl-text { flex: 1; }
.blog-nl-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--clr-dark);
}
.blog-nl-sub {
  font-size: 14px;
  color: var(--clr-muted);
  margin-top: 2px;
}
.blog-nl-form {
  display: flex;
  gap: var(--s2);
  flex-shrink: 0;
}
.blog-nl-input {
  height: 46px;
  padding: 0 var(--s2);
  border-radius: var(--r-sm);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-dark);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  width: 240px;
  transition: border-color var(--t-fast);
}
.blog-nl-input::placeholder { color: var(--clr-muted); }
.blog-nl-input:focus { border-color: var(--clr-accent); }
.blog-nl-btn { flex-shrink: 0; }
@media (max-width: 860px) {
  .blog-newsletter { flex-wrap: wrap; }
  .blog-nl-form { width: 100%; }
  .blog-nl-input { flex: 1; }
}
@media (max-width: 480px) {
  .blog-newsletter { padding: var(--s3); flex-direction: column; align-items: flex-start; }
  .blog-nl-form { flex-direction: column; }
  .blog-nl-input { width: 100%; }
  .blog-nl-btn { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════
   CTA
═══════════════════════════════════════════════ */
.cta {
  padding: var(--s7) 0;
}
.cta-card {
  background: var(--clr-rose-bg);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 400px;
}
.cta-content {
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s3);
}
.cta-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--clr-dark);
  line-height: 1.15;
}
.cta-sub {
  font-size: 15px;
  color: var(--clr-text);
  line-height: 1.7;
  max-width: 400px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.cta-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.cta-btn-row .btn-outline {
  border-color: rgba(26,26,26,.15);
  background: rgba(255,255,255,.5);
}
.cta-btn-row .btn-outline:hover {
  border-color: var(--clr-dark);
  background: var(--clr-surface);
}
.cta-email {
  font-size: 13px;
  color: var(--clr-muted);
}
.cta-email a {
  color: var(--clr-accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.cta-email a:hover { border-color: var(--clr-accent); }

.cta-visual {
  position: relative;
  background: linear-gradient(170deg, #a8d8d4 0%, #5aada8 45%, #23857f 100%);
}
.cta-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* ═══════════════════════════════════════════════
   LOCATION
═══════════════════════════════════════════════ */
.location {
  padding: var(--s7) 0;
  background: var(--clr-bg);
}
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.loc-desc {
  font-size: 16px;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-top: var(--s15);
}
.loc-details {
  display: flex;
  flex-direction: column;
  gap: var(--s25);
  margin-top: var(--s4);
}
.loc-item {
  display: flex;
  gap: var(--s15);
  align-items: flex-start;
}
.loc-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent-bg);
  color: var(--clr-accent);
  border-radius: var(--r-sm);
}
.loc-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loc-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-dark);
}
.loc-item span,
.loc-item a {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.5;
}
.loc-item a:hover { color: var(--clr-accent); }

/* Right column: map + button */
.loc-right {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.loc-btn {
  align-self: center;
}

/* Map embed */
.loc-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  border: 1px solid var(--clr-border);
}
.loc-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}


/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--s6);
  padding: var(--s6) 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
}
.footer-logo { height: 76px; width: auto; }
.footer-brand > p {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: var(--s1);
  margin-top: var(--s1);
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text);
  transition: all var(--t-fast);
}
.footer-social a:hover {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.footer-heading {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: var(--s3);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--s15);
}
.footer-col a {
  font-size: 14px;
  color: var(--clr-text);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--clr-accent); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: var(--s3) 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--clr-muted);
  gap: var(--s3);
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  gap: var(--s3);
}
.footer-legal a { transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--clr-accent); }
.footer-dev { margin-left: auto; }
.footer-dev a { font-weight: 500; }


/* ═══════════════════════════════════════════════
   PRIMERA VALORACIÓN
═══════════════════════════════════════════════ */
.assessment {
  padding: var(--s7) 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.assessment-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.assessment-lead {
  font-size: 16px;
  color: var(--clr-muted);
  line-height: 1.75;
  margin: var(--s3) 0 var(--s4);
  max-width: 480px;
}
.assessment-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.assessment-feat {
  display: flex;
  flex-direction: column;
  gap: var(--s15);
  padding: var(--s3);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
}
.assessment-feat strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-dark);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   ENFOQUE INTEGRAL
═══════════════════════════════════════════════ */
.approach {
  padding: var(--s7) 0;
  background: var(--clr-bg);
}
.approach-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  max-width: 900px;
  margin: 0 auto;
}
.approach-card {
  text-align: center;
  padding: var(--s4) var(--s3);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
}
.approach-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--clr-accent-bg);
  color: var(--clr-accent);
  border-radius: var(--r-full);
  margin-bottom: var(--s2);
}
.approach-card h3 {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--clr-dark);
  margin-bottom: 6px;
}
.approach-card p {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.6;
}
.approach-note {
  max-width: 780px;
  margin: var(--s5) auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.approach-note p {
  font-size: 15px;
  color: var(--clr-muted);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   EVALUACIÓN PERIODONTAL
═══════════════════════════════════════════════ */
.periodontal-check {
  padding: var(--s7) 0;
  background: var(--clr-hero-bg);
  color: #fff;
}
.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.periodontal-check .section-title { color: #fff; }
.pc-question {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  margin-top: var(--s2);
  max-width: 400px;
}
.pc-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.pc-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s15);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.88);
  padding-bottom: var(--s2);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.pc-list li:last-child { border-bottom: none; padding-bottom: 0; }
.pc-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════
   CASOS / SOLUCIONES
═══════════════════════════════════════════════ */
.cases {
  padding: var(--s7) 0;
  background: var(--clr-surface);
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5) var(--s4);
  margin-top: var(--s5);
}
.case-block { display: flex; flex-direction: column; }
.case-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--s15);
}
.case-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  margin-bottom: var(--s2);
}
.case-img { position: relative; aspect-ratio: 4 / 3; }
.case-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Implante Dental photos are tall portraits — bias the crop down toward the implant screw / new tooth */
.case-img img[src*="implante-dental"] {
  object-position: center 85%;
}
.case-img-tag {
  position: absolute;
  bottom: var(--s15);
  left: var(--s15);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
}
.case-img:last-child .case-img-tag {
  background: rgba(42,157,143,.85);
  color: #fff;
}
.case-title {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--clr-dark);
  margin-bottom: 6px;
}
.case-desc {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
═══════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  right: var(--s3);
  bottom: var(--s3);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s2);
}
.wa-float-btn {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--clr-wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(212,140,155,.45);
  opacity: 0;
  transform: translateY(24px) scale(.85);
  pointer-events: none;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), box-shadow var(--t-fast);
}
.wa-float.is-visible .wa-float-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-float-btn:hover {
  background: var(--clr-wa-dk);
  box-shadow: 0 8px 28px rgba(212,140,155,.6);
  transform: translateY(-2px) scale(1.04);
}
.wa-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--clr-wa);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float.is-visible .wa-float-ring { animation-play-state: running; }
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.9); opacity: 0;   }
  100% { transform: scale(1.9); opacity: 0;   }
}

/* Greeting bubble */
.wa-float-bubble {
  position: relative;
  max-width: 230px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: var(--s2) var(--s25);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.wa-float-bubble.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-float-bubble::after {
  content: '';
  position: absolute;
  right: 22px;
  bottom: -7px;
  width: 14px; height: 14px;
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  transform: rotate(45deg);
}
.wa-float-bubble p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--clr-text);
  padding-right: var(--s2);
}
.wa-float-bubble strong { color: var(--clr-dark); }
.wa-float-close {
  position: absolute;
  top: 6px; right: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.wa-float-close:hover { background: var(--clr-bg); color: var(--clr-dark); }

@media (max-width: 640px) {
  .wa-float { right: var(--s2); bottom: var(--s2); }
  .wa-float-btn { width: 52px; height: 52px; }
  .wa-float-bubble { max-width: 200px; }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; gap: var(--s4); }
  .hero-img-main { width: 360px; height: 440px; }
  .hero-float-card { left: -20px; bottom: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .about-img-stack { height: 380px; }
  .assessment-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .approach-cards { grid-template-columns: 1fr; max-width: 420px; }
  .pc-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .case-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card:last-child { display: none; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-visual { min-height: 280px; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s5); }
  .loc-grid { grid-template-columns: 1fr; }
  .loc-map { aspect-ratio: 16 / 10; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --s5: 40px;
    --s6: 48px;
    --s7: 64px;
  }

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 110px;
    gap: var(--s4);
  }
  .hero-visual { margin-top: var(--s2); }
  .hero-img-main { width: 100%; max-width: 340px; height: 400px; margin: 0 auto; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Metrics */
  .metrics-row { flex-wrap: wrap; gap: var(--s4); }
  .metric-divider { display: none; }
  .metric { flex: 0 0 calc(50% - var(--s2)); }

  /* About */
  .about-img-stack { height: auto; position: static; display: flex; gap: var(--s2); }
  .about-img { position: static; border-radius: var(--r-md); }
  .about-img-1 { width: 55%; height: 240px; }
  .about-img-2 { width: 45%; height: 240px; border: none; }

  /* Instagram */
  .ig-grid { grid-template-columns: repeat(2, 1fr); }

  /* Primera valoración / Enfoque / Checklist / Casos */
  .assessment-features { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card:last-child { display: block; }
  .blog-top { flex-direction: column; align-items: flex-start; }

  /* CTA */
  .cta-content { padding: var(--s4); }
  .cta-visual { min-height: 220px; }

  /* Footer */
  .footer-nav { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .footer-nav .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}


/* ─── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hi { animation: none; opacity: 1; transform: none; }
  .marquee-inner { animation: none; }
}
