/**
 * @file dra-analia-volpi.css
 * @description Estilos principales del portal inmersivo - Dra. Analía Volpi
 * @author Innectia Engineering Division (https://innectia.com)
 * @version 2.0.0
 */

/* ============================================
   0. CUSTOM PROPERTIES (PALETA + Z-INDEX)
   ============================================ */
:root {
  --bg: #0A1210;
  --panel: #111F18;
  --panel-2: #182A20;
  --line: rgba(220, 230, 222, 0.10);
  --line-strong: rgba(220, 230, 222, 0.20);
  --text: #EAF0EB;
  --muted: #8FA694;
  --primary: #2D5A3D;
  --accent: #6B8F71;
  --accent-deep: #3D6B4A;
  --gold: #B8976A;
  --gold-dim: rgba(184, 151, 106, 0.15);
  --alert: #E4432B;
  --conversion: #25D366;
  --header-h: 72px;
  --footer-h: 48px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-slide: cubic-bezier(.16, .84, .24, 1);
  --radius: 12px;
  --radius-sm: 8px;

  /* Z-INDEX HIERARCHY — OBLIGATORIA */
  --z-video-bg: 0;
  --z-content: 1;
  --z-section-decorations: 2;
  --z-sidenav: 100;
  --z-header: 200;
  --z-mobile-nav: 250;
  --z-mobile-cta: 400;
  --z-footer: 500;
  --z-chatbot-teaser: 600;
  --z-chatbot-button: 700;
  --z-chatbot-panel: 800;
  --z-cookie-banner: 9000;
  --z-modal-overlay: 9500;
  --z-modal-content: 9600;
}

/* ============================================
   1. RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }

/* ============================================
   2. CUSTOM CURSOR (desktop only)
   ============================================ */
@media (pointer: fine) {
  html {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='%236B8F71' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='1.5' fill='%236B8F71'/%3E%3C/svg%3E") 12 12, auto;
  }
  a, button, [role="button"], .clickable {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='6' fill='none' stroke='%23B8976A' stroke-width='1.5'/%3E%3Ccircle cx='14' cy='14' r='2.5' fill='%23B8976A'/%3E%3C/svg%3E") 14 14, pointer;
  }
}

/* ============================================
   3. HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 18, 16, 0.85);
  border-bottom: 1px solid var(--line);
  transition: background .4s;
}

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

.header-logo-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: block;
  text-decoration: none;
}

.header-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.header-logo-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.5;
  animation: logoBreath 3s ease-in-out infinite;
}

@keyframes logoBreath {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}

.header-title {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.2;
}

.header-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 32px);
}

.header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color .3s;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .3s var(--ease-slide);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.nav-cta-link {
  background: var(--accent-deep) !important;
  color: var(--text) !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  border: 1px solid var(--accent) !important;
  transition: all .3s !important;
}
.nav-cta-link:hover {
  background: var(--accent) !important;
  border-color: var(--gold) !important;
  color: #fff !important;
}
.nav-cta-link::after { display: none !important; }

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 6px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.lang-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--muted);
  transition: all .25s;
}
.lang-btn.active {
  background: var(--accent-deep);
  color: var(--text);
}
.lang-btn:hover:not(.active) { color: var(--text); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all .3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   4. PAGER SYSTEM (ZERO SCROLL)
   ============================================ */
.pager-viewport {
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
}

.pager-track {
  transition: transform .85s var(--ease-slide);
  will-change: transform;
}

.screen {
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Video backgrounds */
.screen-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: var(--z-video-bg);
}

.screen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 18, 16, 0.82) 0%,
    rgba(10, 18, 16, 0.65) 40%,
    rgba(10, 18, 16, 0.85) 100%
  );
  z-index: var(--z-content);
}

.screen-content {
  position: relative;
  z-index: var(--z-section-decorations);
  width: 100%;
  max-width: 1200px;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ============================================
   5. NAVIGATION ARROWS & INDICATORS
   ============================================ */
.pager-arrows {
  position: fixed;
  right: clamp(12px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-sidenav);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pager-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  background: rgba(10, 18, 16, 0.6);
  transition: all .3s;
  color: var(--muted);
}
.pager-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(10, 18, 16, 0.9);
}
.pager-arrow:disabled {
  opacity: 0.25;
  pointer-events: none;
}
.pager-arrow svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.pager-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.pager-dots {
  position: fixed;
  left: clamp(12px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-sidenav);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pager-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: all .4s var(--ease-slide);
  border: none; padding: 0;
}
.pager-dot.active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(184, 151, 106, 0.4);
  transform: scale(1.3);
}

/* ============================================
   6. HERO SECTION
   ============================================ */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
}

.eyebrow {
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--gold);
  display: inline-block;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--conversion);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: all .3s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  background: var(--conversion);
  opacity: 0;
  filter: blur(12px);
  animation: btnGlow 2.5s ease-in-out infinite;
  z-index: -1;
}
@keyframes btnGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.08); }
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}
.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.03);
  transition: all .3s;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
  transform: scale(1.04);
}
.btn-secondary:active {
  transform: scale(0.98);
}

.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.04em;
}

/* ============================================
   7. ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.about-text p {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.7;
  color: var(--muted);
}

.specialty-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.specialty-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent-deep);
  border-radius: 20px;
  background: rgba(107, 143, 113, 0.08);
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo-frame {
  position: relative;
  width: clamp(220px, 22vw, 320px);
  height: clamp(220px, 22vw, 320px);
  border-radius: 50%;
}
.about-photo-frame img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.about-photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.3;
  animation: ringPulse 4s ease-in-out infinite;
}
.about-photo-ring-2 {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.15;
  animation: ringPulse 4s ease-in-out infinite 1s;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.02); }
}

/* ============================================
   8. TREATMENTS SECTION
   ============================================ */
.treatments-content { width: 100%; }

.treatments-header {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
}

.treat-card {
  background: rgba(17, 31, 24, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 32px);
  backdrop-filter: blur(12px);
  transition: transform .35s cubic-bezier(0.25, 0, 0, 1), box-shadow .35s ease, border-color .35s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.treat-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.treat-card:active {
  transform: translateY(-1px) scale(0.98);
}

.treat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.treat-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5;
}

.treat-card h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  color: var(--text);
}
.treat-card p {
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================
   9. CONTACT SECTION
   ============================================ */
.contact-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 700px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
}

.contact-channels {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.contact-item svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* ============================================
   10. CONCIERGE WIDGET
   ============================================ */
.concierge-fab {
  position: fixed;
  bottom: 72px;
  right: clamp(16px, 3vw, 32px);
  z-index: var(--z-chatbot-button);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(61, 107, 74, 0.4);
  transition: all .3s;
  animation: fabPulse 3s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(61, 107, 74, 0.3); }
  50% { box-shadow: 0 6px 32px rgba(61, 107, 74, 0.6), 0 0 0 8px rgba(61, 107, 74, 0.1); }
}
.concierge-fab:hover { transform: scale(1.08); }
.concierge-fab svg { width: 26px; height: 26px; fill: #fff; }
.concierge-fab.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

/* Proactive bubble */
.concierge-proactive {
  position: fixed;
  bottom: 142px;
  right: clamp(16px, 3vw, 32px);
  z-index: var(--z-chatbot-teaser);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius) var(--radius) 4px var(--radius);
  padding: 14px 18px;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all .4s var(--ease-slide);
  pointer-events: none;
}
.concierge-proactive.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.concierge-proactive-close {
  position: absolute;
  top: 6px; right: 8px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1;
  padding: 2px 4px;
}

/* Panel */
.concierge-panel {
  position: fixed;
  bottom: 72px;
  right: clamp(16px, 3vw, 32px);
  z-index: var(--z-chatbot-panel);
  width: clamp(320px, 28vw, 400px);
  max-height: calc(100vh - var(--header-h) - 100px);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all .35s var(--ease-slide);
}
.concierge-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.concierge-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.concierge-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.concierge-avatar svg { width: 20px; height: 20px; fill: #fff; }

.concierge-status {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--conversion);
  border: 2px solid var(--panel-2);
}

.concierge-header-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.concierge-header-info span {
  font-size: 11px;
  color: var(--muted);
}

.concierge-close {
  margin-left: auto;
  font-size: 20px;
  color: var(--muted);
  padding: 4px;
  transition: color .2s;
}
.concierge-close:hover { color: var(--text); }

.concierge-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
.concierge-body::-webkit-scrollbar { width: 4px; }
.concierge-body::-webkit-scrollbar-track { background: transparent; }
.concierge-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 2px; }

/* Messages */
.msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: msgIn .4s var(--ease-slide) both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-bot .msg-bubble {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.msg-user .msg-bubble {
  background: var(--accent-deep);
  border: 1px solid var(--accent);
  border-radius: var(--radius) var(--radius) 4px var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  align-self: flex-end;
}

/* Concierge level indicator */
.concierge-level-indicator {
  display: flex;
  gap: 4px;
  padding: 0 4px;
  margin-bottom: 4px;
}
.concierge-level-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: all .3s;
}
.concierge-level-dot.active {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(184, 151, 106, 0.4);
}
.concierge-level-dot.completed {
  background: var(--accent);
}

/* Options chips */
.msg-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: all .25s;
  line-height: 1.4;
}
.chip:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  transform: translateX(4px);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
  font-size: 12px;
  color: var(--muted);
}
.typing-dots {
  display: flex;
  gap: 4px;
}
.typing-dots span {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: typeDot 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typeDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* WhatsApp button */
.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--conversion);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all .3s;
  margin-top: 4px;
  width: 100%;
}
.wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  color: #fff;
}
.wa-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ============================================
   11. FOOTER (INNECTIA STANDARD)
   ============================================ */
.site-footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  height: var(--footer-h);
  z-index: var(--z-footer);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 8, 10, 0.90);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-left a {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  transition: color .25s;
}
.footer-left a:hover { color: var(--gold); }

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  transition: color .25s;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.7); }

/* ============================================
   12. COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-cookie-banner);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 24px;
  max-width: 560px;
  width: calc(100% - 32px);
  display: none;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}
.cookie-banner.visible {
  display: flex;
}
.cookie-banner p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}
.cookie-banner p a {
  color: var(--gold);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-accept {
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  transition: all .25s;
}
.cookie-accept:hover { background: var(--gold); }
.cookie-reject {
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  transition: all .25s;
}
.cookie-reject:hover { border-color: var(--muted); color: var(--text); }

/* ============================================
   13. MOBILE CTA (fixed bottom bar)
   ============================================ */
.mobile-cta {
  display: none;
}

/* ============================================
   14. ANIMATIONS (REVEAL ON SLIDE)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-slide), transform .6s var(--ease-slide);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* Scanline texture for hero */
.scanlines {
  position: absolute;
  inset: 0;
  z-index: var(--z-content);
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(107, 143, 113, 0.015) 2px,
    rgba(107, 143, 113, 0.015) 4px
  );
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  from { background-position: 0 0; }
  to { background-position: 0 100px; }
}

/* ============================================
   15. CURSOR TRAIL (desktop only)
   ============================================ */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: trailFade .8s ease-out forwards;
  white-space: nowrap;
}
@keyframes trailFade {
  to { opacity: 0; transform: translateY(-16px); }
}

.click-burst {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: burstExpand .5s ease-out forwards;
}
@keyframes burstExpand {
  to { width: 60px; height: 60px; opacity: 0; margin-left: -18px; margin-top: -18px; }
}

/* ============================================
   16. RESPONSIVE — MOBILE (≤900px)
   ============================================ */
@media (max-width: 900px) {
  html, body {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .pager-viewport {
    height: auto !important;
    overflow: visible !important;
    margin-top: 0 !important;
  }

  .pager-track {
    transform: none !important;
    transition: none !important;
    display: block !important;
  }

  .screen {
    height: auto !important;
    min-height: 100dvh;
    min-height: 100vh;
    padding-top: calc(var(--header-h) + 20px) !important;
    padding-bottom: 40px !important;
    justify-content: flex-start !important;
    align-items: center;
    position: relative;
    overflow: hidden;
  }

  /* Reveals visible via IntersectionObserver on mobile (JS handles this) */
  /* Fallback: always visible if no JS */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal.mob-reveal {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: opacity .5s ease, transform .5s ease !important;
  }
  .reveal.mob-reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .pager-arrows,
  .pager-dots {
    display: none !important;
  }

  .header-nav { display: none; }
  .menu-toggle { display: flex; }

  .header-nav.mobile-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header-h));
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    background: rgba(10, 18, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 24px;
    gap: 24px;
    z-index: var(--z-mobile-nav);
    overflow-y: auto;
    animation: mobileNavIn .3s ease both;
  }
  @keyframes mobileNavIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .header-nav.mobile-open a {
    font-size: 18px;
    padding: 8px 0;
  }

  .header-nav.mobile-open .lang-selector {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .about-photo-wrap { order: -1; }
  .about-photo-frame {
    width: 130px; height: 130px;
  }

  .treatments-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .treatments-header { margin-bottom: 16px; }

  .contact-channels {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Footer: flow on mobile */
  .site-footer {
    position: relative;
  }

  /* Concierge: full-screen panel on mobile */
  .concierge-panel {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    max-height: 100%;
    border-radius: 0;
    z-index: var(--z-chatbot-panel);
  }

  .concierge-fab {
    bottom: 20px;
    right: 16px;
    width: 52px; height: 52px;
  }
  .concierge-fab svg { width: 22px; height: 22px; }

  .concierge-proactive {
    bottom: 80px;
    right: 12px;
  }

  .screen-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }

  /* Screen overlay: stronger on mobile for legibility */
  .screen-overlay {
    background: linear-gradient(180deg,
      rgba(10, 18, 16, 0.88) 0%,
      rgba(10, 18, 16, 0.78) 40%,
      rgba(10, 18, 16, 0.92) 100%
    ) !important;
  }
}

/* ============================================
   16b. SMALL MOBILE (≤600px)
   ============================================ */
@media (max-width: 600px) {
  :root { --header-h: 60px; }

  .screen {
    padding-top: calc(var(--header-h) + 12px) !important;
    padding-bottom: 28px !important;
  }

  .screen-content {
    padding: 0 16px;
  }

  .hero-content,
  .about-text,
  .treatments-content,
  .contact-content {
    gap: 10px;
  }

  .contact-content {
    text-align: left;
    align-items: flex-start;
  }

  .treatments-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .treat-card {
    padding: 10px;
    gap: 6px;
  }
  .treat-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
  }
  .treat-icon svg { width: 14px; height: 14px; }
  .treat-card h3 { font-size: 12px; }
  .treat-card p  { font-size: 10.5px; line-height: 1.4; }

  /* Typography: vh + vw clamped */
  .hero-title {
    font-size: clamp(22px, min(6.5vw, 4.2vh), 28px);
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: clamp(13px, min(3.5vw, 2vh), 14px);
    line-height: 1.5;
  }
  .section-title {
    font-size: clamp(20px, min(5.5vw, 3.5vh), 24px);
    line-height: 1.2;
  }
  .eyebrow {
    font-size: clamp(9px, min(2.6vw, 1.4vh), 10px);
  }
  .about-text p {
    font-size: clamp(12px, min(3.2vw, 1.8vh), 13px);
    text-align: left;
    line-height: 1.5;
  }
  .contact-title {
    font-size: clamp(20px, min(5.5vw, 3.5vh), 24px);
    text-align: left;
  }
  .contact-item {
    font-size: clamp(11px, min(3vw, 1.7vh), 12px);
  }

  .about-photo-frame {
    width: 90px; height: 90px;
  }
  .about-grid { gap: 12px; }

  /* Hide 3rd paragraph on small mobile to prevent overflow */
  .about-p3-desktop { display: none; }

  .hero-badges { gap: 6px; }
  .badge { font-size: 9px; padding: 3px 8px; }

  .specialty-bar { gap: 4px; }
  .specialty-tag { font-size: 8px; padding: 3px 7px; }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }
  .btn-primary, .btn-secondary {
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
  }

  .concierge-proactive {
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1.3;
    max-width: 220px;
    bottom: 80px;
    right: 12px;
  }
  .concierge-proactive .proactive-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .concierge-proactive-close {
    top: 3px; right: 4px; font-size: 14px;
  }

  /* Mobile CTA bar */
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    height: 52px;
    z-index: var(--z-mobile-cta);
    background: var(--conversion);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 -4px 20px rgba(37, 211, 102, 0.3);
    transition: transform .3s;
  }
  .mobile-cta.hidden {
    transform: translateY(100%);
  }

  /* Cookie banner: stack on mobile */
  .cookie-banner {
    bottom: 60px;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-accept, .cookie-reject {
    flex: 1;
    text-align: center;
  }

  /* Chatbot body: smaller padding on mobile */
  .concierge-body {
    padding: 14px;
    gap: 12px;
  }
  .msg-bot .msg-bubble,
  .msg-user .msg-bubble {
    padding: 10px 12px;
    font-size: 13px;
  }
  .chip {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* ============================================
   16c. ULTRA-SMALL (≤380px)
   ============================================ */
@media (max-width: 380px) {
  .treatments-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-title {
    font-size: clamp(20px, 6vw, 24px);
  }
}

/* ============================================
   16d. LOW HEIGHT SCREENS
   ============================================ */
@media (max-height: 700px) and (min-width: 601px) {
  .hero-content { gap: 16px; }
  .hero-title { font-size: clamp(24px, 4vh, 40px); }
  .hero-subtitle { font-size: clamp(13px, 2vh, 16px); }
  .hero-badges { margin-top: 4px; }
}

/* ============================================
   17. ATENCION ONLINE (FULLSCREEN CHAT)
   ============================================ */
.fullscreen-chat .concierge-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 600px;
  max-height: 100vh;
  margin: 0 auto;
  border-radius: 0;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.fullscreen-chat .concierge-fab,
.fullscreen-chat .concierge-proactive,
.fullscreen-chat .site-footer {
  display: none;
}

/* ============================================
   18. SEO HIDDEN CONTENT
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ============================================
   19. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .pager-track { transition: transform 0.4s ease !important; }
  [data-depth] { transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
}
