/*!
 * ArrayanMed — Centro de Salud Mental Infantojuvenil
 * Aesthetic: Botanical Sanctuary
 * Fonts: Playfair Display (display) + Outfit (body)
 * Palette: Sage green, warm gold, cream
 * Redesign 2026-03-04
 */

/* =================================================================
   1. DESIGN TOKENS
   ================================================================= */
:root {
  /* Color — Primary */
  --sage: #7B9A6D;
  --sage-dark: #5E7D50;
  --sage-light: #A8C18A;
  --sage-muted: rgba(123, 154, 109, 0.08);
  --sage-glow: rgba(123, 154, 109, 0.25);

  /* Color — Accent */
  --gold: #C9A84C;
  --gold-dark: #A8893A;
  --gold-light: #E8D48B;
  --gold-muted: rgba(201, 168, 76, 0.10);

  /* Color — Neutral */
  --cream: #F7F5F0;
  --white: #FFFFFF;
  --sand: #EDE9E0;

  /* Color — Text */
  --ink: #2A3130;
  --ink-soft: #4A5856;
  --ink-muted: #7A8886;
  --ink-faint: #A3AFAD;

  /* Color — Semantic */
  --coral: #C0626F;
  --coral-muted: rgba(192, 98, 111, 0.10);
  --sky: #5B8FA8;
  --sky-muted: rgba(91, 143, 168, 0.10);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */
  --fs-2xl: 2rem;       /* 32px */
  --fs-3xl: 2.5rem;     /* 40px */
  --fs-4xl: 3.25rem;    /* 52px */
  --fs-hero: clamp(2.5rem, 5vw, 4rem);

  /* Spacing */
  --sp-2xs: 0.25rem;
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Shadows — warm-tinted */
  --shadow-xs: 0 1px 3px rgba(42, 49, 48, 0.04);
  --shadow-sm: 0 2px 8px rgba(42, 49, 48, 0.06);
  --shadow-md: 0 4px 20px rgba(42, 49, 48, 0.08);
  --shadow-lg: 0 12px 40px rgba(42, 49, 48, 0.10);
  --shadow-xl: 0 20px 60px rgba(42, 49, 48, 0.14);
  --shadow-glow: 0 8px 30px var(--sage-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.15s var(--ease-out);
  --t-base: 0.3s var(--ease-out);
  --t-slow: 0.5s var(--ease-out);

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 800px;
  --max-w-wide: 1400px;
}

/* =================================================================
   2. RESET + BASE
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

h1 { font-size: var(--fs-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  margin-bottom: var(--sp-lg);
  color: var(--ink-soft);
}

a {
  color: var(--sage);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover { color: var(--sage-dark); }

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

ul, ol { padding-left: var(--sp-xl); margin-bottom: var(--sp-lg); }
li { margin-bottom: var(--sp-xs); }

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  transition: all var(--t-base);
}

::selection {
  background: var(--sage);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

:focus:not(:focus-visible) { outline: none; }

/* Subtle grain texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* =================================================================
   3. LAYOUT
   ================================================================= */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.section {
  padding: var(--sp-4xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--ink);
  margin-bottom: var(--sp-lg);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  border-radius: 2px;
}

.section-title-lg { font-size: var(--fs-3xl); }

.section-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 30px;
  margin-bottom: var(--sp-xl);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.section-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--sage);
  opacity: 0.15;
}

.subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2xl);
}

/* Spacers */
.spacer-sm { height: 40px; }
.spacer-md { height: 60px; }
.spacer-lg { height: 80px; }

/* =================================================================
   4. BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  padding: 14px 28px;
  font-size: var(--fs-base);
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn i { font-size: 1.1em; }

.btn-primary {
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white);
  box-shadow: var(--shadow-sm), 0 4px 12px var(--sage-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 8px 24px var(--sage-glow);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--sage);
  border: 2px solid var(--sage);
}

.btn-secondary:hover {
  background: var(--sage-muted);
  transform: translateY(-2px);
  color: var(--sage);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--sand);
}

.btn-ghost:hover {
  background: var(--cream);
  border-color: var(--ink-muted);
}

.btn-sm { padding: 10px 20px; font-size: var(--fs-sm); }
.btn-lg { padding: 16px 36px; font-size: var(--fs-md); }

.btn-green {
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-instagram-gradient {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
}

.btn-instagram-gradient:hover { color: var(--white); }

/* Prevent ::before pseudo on buttons */
.btn-primary::before,
.btn-secondary::before,
.btn-ghost::before { content: none; }

/* =================================================================
   5. TOP INFO BAR
   ================================================================= */
.top-info-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white);
  padding: 10px 0;
  z-index: 1001;
  box-shadow: 0 2px 12px rgba(42, 49, 48, 0.15);
}

.top-info-bar-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-xl);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0 var(--sp-lg);
}

.top-info-bar .tel-link {
  color: var(--white);
  font-weight: 700;
}

.top-info-bar .btn-disponibilidad {
  background: var(--white);
  color: var(--sage-dark);
  padding: 6px 18px;
  border-radius: var(--r-full);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  transition: all var(--t-fast);
}

.top-info-bar .btn-disponibilidad:hover {
  background: var(--gold-light);
  color: var(--ink);
  transform: scale(1.03);
}

/* =================================================================
   6. HEADER / NAVIGATION
   ================================================================= */
.header {
  position: fixed;
  top: 42px; /* below top bar */
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s var(--ease-out);
  animation: slideDown 0.6s var(--ease-out);
}

.header.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
  background: rgba(247, 245, 240, 0.96);
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-lg);
  position: relative;
  min-height: 52px;
}

.header-content .btn-acceso {
  position: absolute;
  left: 0;
}

.datetime-display {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  font-weight: 500;
}

.datetime-text {
  font-size: 0.7rem;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.btn-header {
  padding: 12px 28px;
  border-radius: var(--r-full);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn-header:hover::before { width: 300px; height: 300px; }

.btn-acceso {
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white);
  box-shadow: 0 4px 16px var(--sage-glow);
}

.btn-acceso:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--sage-glow);
  color: var(--white);
}

.btn-header i { font-size: 1em; transition: transform var(--t-fast); }
.btn-header:hover i { transform: scale(1.1); }

/* Contact flip card */
.contact-flip-container { perspective: 1000px; position: relative; }

.contact-flip-card {
  width: 140px;
  height: 50px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), width 0.4s var(--ease-out), height 0.4s var(--ease-out);
}

.contact-flip-card.flipped {
  width: 320px;
  height: 200px;
  z-index: 1000;
  transform: rotateY(180deg);
}

.contact-flip-front,
.contact-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--r-full);
}

.contact-flip-back {
  transform: rotateY(180deg);
  background: var(--white);
  padding: var(--sp-lg) var(--sp-md);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--sage);
  border-radius: var(--r-lg);
}

.btn-contacto {
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: var(--white);
  color: var(--sage);
  border: 2px solid var(--sage);
  cursor: pointer;
  transition: all var(--t-base);
}

.btn-contacto:hover {
  background: var(--sage-muted);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  background: var(--white);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  text-decoration: none;
  padding: var(--sp-xs) 0;
  transition: color var(--t-fast);
}

.contact-item:hover { color: var(--sage); }
.contact-item i { color: var(--sage); width: 20px; text-align: center; }

.contact-encuadrado-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--fs-sm);
  color: var(--sage);
  font-weight: 600;
  padding: var(--sp-xs) 0;
  text-decoration: none;
}

.contact-encuadrado-btn:hover { color: var(--sage-dark); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   7. HERO
   ================================================================= */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 25% 40%, var(--sage-muted) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 70%, var(--gold-muted) 0%, transparent 60%);
}

.hero-compact {
  padding: 100px 0 30px;
  min-height: auto;
}

.hero-compact .hero-content { padding: 0; text-align: center; }
.hero-compact .logo-wrapper { margin-bottom: var(--sp-lg); }

.hero-compact .logo-container {
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.hero-compact .brand-title { margin-bottom: var(--sp-md); }

.hero-compact .brand-name {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--sage);
  line-height: 1.1;
}

.hero-compact .brand-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 0;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.logo-wrapper {
  margin-bottom: var(--sp-2xl);
  display: flex;
  justify-content: center;
}

.logo-container {
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(123, 154, 109, 0.08);
  transition: all 0.5s var(--ease-out);
  margin: 0 auto;
}

.logo-container::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-muted) 0%, transparent 70%);
}

.logo-container:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(123, 154, 109, 0.12);
}

.logo-container img,
.logo-image {
  width: 75%;
  height: 75%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.brand-title { margin-bottom: var(--sp-2xl); }

.brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--sage);
  margin-bottom: var(--sp-sm);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.brand-star {
  color: var(--gold);
  font-size: 1.5rem;
  vertical-align: middle;
  margin: 0 var(--sp-sm);
  display: inline-block;
  animation: sparkle 3s ease-in-out infinite;
}

.brand-subtitle {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.04em;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(10deg); }
}

.hero-ctas {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-lg);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--r-md);
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-md);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transition: all var(--t-base);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  color: var(--white);
}

.hero-contact-box {
  background: var(--white);
  padding: var(--sp-lg) var(--sp-xl);
  border-radius: var(--r-lg);
  margin-top: var(--sp-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sand);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-contact-box p {
  margin: 6px 0;
  color: var(--ink);
  text-align: center;
}

.hero-contact-box .address { font-size: var(--fs-md); font-weight: 600; }
.hero-contact-box .phone-hours { font-size: var(--fs-base); }
.hero-contact-box a { color: var(--sage); font-weight: 700; }

/* =================================================================
   8. ESPECIALIDADES NAV
   ================================================================= */
.especialidades-nav {
  padding: var(--sp-lg) 0;
  background: var(--sage-muted);
  margin-top: 0;
}

.especialidades-nav h3 {
  text-align: center;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-md);
  color: var(--ink);
  font-weight: 600;
}

.especialidades-nav .btn-group {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.especialidad-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white);
  text-decoration: none;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all var(--t-base);
  box-shadow: 0 3px 12px var(--sage-glow);
  letter-spacing: 0.02em;
}

.especialidad-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px var(--sage-glow);
  color: var(--white);
}

.especialidad-btn i { margin-right: 4px; }

/* =================================================================
   9. PROCESS SECTION — Cómo Trabajamos
   ================================================================= */
.process-section {
  padding: var(--sp-4xl) 0;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, var(--sage-muted) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 100% 100%, var(--gold-muted) 0%, transparent 60%);
}

.process-section .container { max-width: var(--max-w-narrow); }

.process-section .section-title {
  text-align: center;
  margin-bottom: var(--sp-3xl);
  font-size: var(--fs-2xl);
  color: var(--ink);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.process-card {
  background: var(--white);
  padding: var(--sp-2xl) var(--sp-xl);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--t-base);
  border: 1px solid transparent;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sand);
}

.process-card.border-green { border-top: 3px solid var(--sage); }
.process-card.border-gold { border-top: 3px solid var(--gold); }
.process-card.border-blue { border-top: 3px solid var(--sky); }

.process-step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-lg);
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.process-step-number.bg-green { background: linear-gradient(135deg, var(--sage), var(--sage-dark)); }
.process-step-number.bg-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.process-step-number.bg-blue { background: linear-gradient(135deg, var(--sky), #3d6f84); }

.process-card h3 {
  margin: 0 0 var(--sp-md);
  color: var(--ink);
  font-size: var(--fs-lg);
}

.process-card p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

/* CTA Box */
.cta-box {
  text-align: center;
  margin-top: var(--sp-3xl);
  padding: var(--sp-xl);
  background: var(--sage-muted);
  border-radius: var(--r-lg);
}

.cta-box h4 { margin: 0 0 var(--sp-sm); color: var(--ink); font-size: var(--fs-lg); }
.cta-box p { margin: 0 0 var(--sp-lg); color: var(--ink-soft); }

/* =================================================================
   10. TESTIMONIALS
   ================================================================= */
.testimonios-section {
  padding: var(--sp-4xl) 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 50%, var(--cream) 100%);
}

.testimonios-section .section-title { text-align: center; margin-bottom: var(--sp-md); }
.testimonios-section .subtitle { text-align: center; color: var(--ink-soft); margin-bottom: var(--sp-2xl); }

#rating-promedio { text-align: center; margin-bottom: var(--sp-3xl); }

.rating-promedio-container {
  display: inline-block;
  padding: var(--sp-xl) var(--sp-2xl);
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sand);
}

.rating-numero-grande {
  font-size: 3.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--sage);
}

.estrellas-grandes { font-size: 1.75rem; color: var(--gold); margin: var(--sp-xs) 0; }
.estrellas { color: var(--gold); font-size: 1.2rem; display: block; }
.rating-detalles p { margin: var(--sp-2xs) 0; color: var(--ink-soft); }
.fuente-rating a { color: var(--sage); }
.rating-numero { font-weight: 700; color: var(--ink); font-size: var(--fs-md); }

#testimonios-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--sp-xl);
  max-width: var(--max-w);
  margin: 0 auto;
}

.testimonio-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
  position: relative;
  border: 1px solid var(--sand);
}

.testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(123, 154, 109, 0.2);
}

.testimonio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-lg);
}

.testimonio-profesional h4 {
  color: var(--sage);
  margin: 0 0 4px 0;
  font-size: var(--fs-md);
}

.testimonio-profesional .especialidad {
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

.testimonio-rating { text-align: right; }

.testimonio-body {
  margin: var(--sp-lg) 0;
  padding: var(--sp-lg);
  background: var(--sage-muted);
  border-radius: var(--r-md);
  border-left: 3px solid var(--sage);
}

.comentario {
  color: var(--ink);
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

.testimonio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-md);
}

.autor-info { display: flex; flex-direction: column; }
.autor-nombre { font-weight: 600; color: var(--ink); }
.fecha { font-size: var(--fs-xs); color: var(--ink-muted); }

.verificado {
  color: var(--sage);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ver-en-encuadrado {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  color: var(--ink-muted);
  font-size: var(--fs-xs);
  text-decoration: none;
  transition: color var(--t-fast);
}

.ver-en-encuadrado:hover { color: var(--sage); }

.testimonios-footer { text-align: center; margin-top: var(--sp-2xl); }
.testimonios-footer .verified-text { color: var(--ink-muted); font-size: var(--fs-sm); }
.testimonios-footer .verified-text i { color: var(--sage); }

.btn-google-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-md);
  margin-left: var(--sp-sm);
  padding: 12px 28px;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all var(--t-base);
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.25);
}

.btn-google-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(66, 133, 244, 0.35);
  color: var(--white);
}

.btn.btn-secondary.mt-20 { margin-top: var(--sp-lg); }

/* =================================================================
   11. ABOUT SECTION
   ================================================================= */
.about-container {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand);
}

.about-content {
  padding: var(--sp-3xl);
  position: relative;
}

.about-text {
  columns: 2;
  column-gap: 50px;
  text-align: justify;
  font-size: var(--fs-base);
  line-height: 1.9;
  color: var(--ink-soft);
}

.about-text p { margin-bottom: var(--sp-xl); position: relative; }

.about-text p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4rem;
  float: left;
  line-height: 0.85;
  margin: 8px 12px 0 0;
  color: var(--sage);
  font-weight: 700;
}

/* About Detail Card */
.about-detail {
  max-width: var(--max-w);
  margin: var(--sp-2xl) auto;
  padding: 0 var(--sp-lg);
}

.about-card {
  background: var(--white);
  padding: var(--sp-2xl);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sand);
}

.about-card > h3 {
  color: var(--sage);
  text-align: center;
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-xl);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.mission-box {
  background: var(--sage-muted);
  padding: var(--sp-xl);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-lg);
  border: 1px solid rgba(123, 154, 109, 0.12);
}

.mission-box h4 { color: var(--sage); margin-bottom: var(--sp-md); font-size: var(--fs-lg); }

.vision-box {
  background: var(--gold-muted);
  padding: var(--sp-xl);
  border-radius: var(--r-lg);
  border: 1px solid rgba(201, 168, 76, 0.12);
}

.vision-box h4 { color: var(--gold-dark); margin-bottom: var(--sp-md); font-size: var(--fs-lg); }

.mission-box p, .vision-box p, .info-panel p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 0;
}

.info-panel {
  background: var(--sky-muted);
  padding: var(--sp-xl);
  border-radius: var(--r-lg);
  height: 100%;
  border: 1px solid rgba(91, 143, 168, 0.12);
}

.info-panel h4 { color: var(--sky); margin-bottom: var(--sp-md); font-size: var(--fs-lg); }

.info-list {
  list-style: none;
  padding: 0;
  color: var(--ink-soft);
  line-height: 2.2;
}

.info-list i { width: 20px; text-align: center; }
.info-list a { color: var(--sage); }

/* Icon utilities */
.icon-green { color: var(--sage); }
.icon-gold { color: var(--gold); }
.icon-blue { color: var(--sky); }
.icon-instagram { color: #E4405F; }
.icon-whatsapp-green { color: #25D366; }
.icon-red { color: #E53E3E; }

/* Values */
.values-section {
  background: linear-gradient(135deg, var(--sage-muted), var(--gold-muted));
  padding: var(--sp-xl);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-xl);
}

.values-section > h4 {
  color: var(--ink);
  text-align: center;
  margin-bottom: var(--sp-lg);
  font-size: var(--fs-xl);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-lg);
  text-align: center;
}

.value-item i { font-size: 1.75rem; margin-bottom: var(--sp-xs); display: block; }
.value-item h5 { color: var(--ink); margin-bottom: 4px; font-size: var(--fs-base); }
.value-item p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }

/* Team overview (in about) */
.team-overview {
  background: var(--white);
  border: 2px solid var(--sage);
  padding: var(--sp-xl);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-xl);
}

.team-overview > h4 {
  color: var(--sage);
  text-align: center;
  margin-bottom: var(--sp-lg);
  font-size: var(--fs-xl);
}

.team-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-md);
}

.team-member {
  padding: var(--sp-md);
  border-radius: var(--r-md);
}

.team-member.bg-green-light { background: var(--sage-muted); }
.team-member.bg-gold-light { background: var(--gold-muted); }
.team-member.bg-blue-light { background: var(--sky-muted); }

.team-member .role-green { color: var(--sage); }
.team-member .role-gold { color: var(--gold-dark); }
.team-member .role-blue { color: var(--sky); }

.team-member a.instagram-link { color: #E4405F; font-size: var(--fs-sm); }

.action-buttons { text-align: center; }
.action-buttons .btn-green { margin: var(--sp-sm); padding: 14px 28px; font-size: var(--fs-md); }

/* =================================================================
   12. SPECIALISTS — Team Cards
   ================================================================= */
.specialists-section {
  padding: var(--sp-4xl) 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, var(--sage-muted) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, var(--gold-muted) 0%, transparent 70%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--sp-xl);
  margin: var(--sp-2xl) 0;
}

.team-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--sand);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(123, 154, 109, 0.15);
}

.team-card-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.team-card:hover .team-card-image { transform: scale(1.03); }

.team-card-content {
  padding: var(--sp-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-card-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-2xs);
  font-family: var(--font-display);
}

.team-card-role {
  font-size: var(--fs-sm);
  color: var(--sage);
  font-weight: 600;
  margin-bottom: var(--sp-md);
  letter-spacing: 0.02em;
}

.team-card-bio {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: var(--sp-lg);
}

.team-card-footer {
  padding-top: var(--sp-md);
  border-top: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.team-card-location {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.team-card-location a { color: var(--sage); }

.team-card-social {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--t-fast);
}

.team-card-social:hover { color: var(--sage); }

/* =================================================================
   13. VIDEO SECTION
   ================================================================= */
.video-section {
  padding: var(--sp-4xl) 0;
  background: var(--white);
}

.video-section .container { max-width: 900px; }

.video-section .section-title {
  text-align: center;
  margin-bottom: var(--sp-xl);
  font-size: var(--fs-2xl);
}

.video-section .subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2xl);
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-aspect-ratio {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-aspect-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
}

.video-ctas { text-align: center; margin-top: var(--sp-2xl); }

.cta-buttons {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.btn-video-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white);
  text-decoration: none;
  border-radius: var(--r-full);
  font-weight: 600;
  transition: all var(--t-base);
  box-shadow: 0 4px 16px var(--sage-glow);
}

.btn-video-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--sage-glow);
  color: var(--white);
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #FF0000, #CC0000);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--r-full);
  font-weight: 600;
  transition: all var(--t-base);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.25);
}

.btn-youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.35);
  color: var(--white);
}

.video-promo {
  margin-top: var(--sp-lg);
  color: var(--ink-muted);
  font-size: var(--fs-sm);
}

.video-promo i { color: #FF0000; margin-right: 4px; }

/* =================================================================
   14. FAQ SECTION
   ================================================================= */
.faq-section {
  padding: var(--sp-4xl) 0;
  background: var(--cream);
}

.faq-section .container { max-width: 960px; }

.faq-section .section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-lg);
  text-align: center;
}

.faq-section .subtitle {
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 500;
  margin-bottom: var(--sp-2xl);
  color: var(--ink);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--sp-lg);
}

.faq-item {
  background: var(--white);
  padding: var(--sp-xl);
  border-radius: var(--r-lg);
  border: 1px solid var(--sand);
  transition: all var(--t-base);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--sage-light));
  opacity: 0;
  transition: opacity var(--t-base);
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(123, 154, 109, 0.2);
}

.faq-item:hover::before { opacity: 1; }

.faq-item h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--sage-dark);
  margin: 0 0 var(--sp-sm) 0;
  line-height: 1.4;
  font-family: var(--font-body);
}

.faq-item p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* Urgent FAQ */
.faq-item.faq-urgent {
  background: linear-gradient(135deg, var(--coral-muted), rgba(192, 98, 111, 0.06));
  border: 2px solid rgba(192, 98, 111, 0.25);
  box-shadow: 0 4px 16px rgba(192, 98, 111, 0.1);
}

.faq-item.faq-urgent::before {
  background: linear-gradient(90deg, var(--coral), #d4848f);
  opacity: 1;
  height: 4px;
}

.faq-item.faq-urgent:hover {
  box-shadow: 0 8px 28px rgba(192, 98, 111, 0.18);
}

.faq-item.faq-urgent h3 {
  color: var(--coral);
  font-size: var(--fs-lg);
}

.faq-important {
  margin-top: var(--sp-2xl);
  padding: var(--sp-xl);
  background: var(--sage-muted);
  border-radius: var(--r-lg);
  text-align: center;
  border: 1px solid rgba(123, 154, 109, 0.12);
}

.faq-important p {
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink);
  margin: 0;
}

/* =================================================================
   15. FOOTER
   ================================================================= */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--sp-3xl) 0 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2xl);
  justify-content: space-between;
  align-items: flex-start;
}

.footer-info {
  flex: 1 1 280px;
  min-width: 280px;
}

.footer-info h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-md);
  color: var(--white);
}

.footer-info p { margin: 8px 0; color: rgba(255, 255, 255, 0.7); }
.footer-info i { width: 20px; text-align: center; }
.footer-info a { color: var(--sage-light); }
.footer-info a:hover { color: var(--white); }

.whatsapp-contact-btn { color: #25D366; font-weight: 600; }
.whatsapp-contact-btn:hover { color: #3ae876; }

.footer-map {
  flex: 1 1 280px;
  min-width: 280px;
}

.footer-map iframe {
  border: 0;
  border-radius: var(--r-md);
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  margin-top: var(--sp-2xl);
  padding: var(--sp-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .tagline {
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .copyright {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .admin-link { margin-top: var(--sp-md); }
.footer-bottom .admin-link a {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  opacity: 0.8;
}

.footer-bottom .admin-link a:hover { color: rgba(255, 255, 255, 0.5); }

/* =================================================================
   16. FLOATING BUTTONS
   ================================================================= */

/* Agendar */
.agendar-float-btn {
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  box-shadow: 0 4px 16px var(--sage-glow);
  z-index: 998;
  transition: all var(--t-base);
  text-decoration: none;
}

.agendar-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px var(--sage-glow);
  color: var(--white);
}

.agendar-float-btn .agendar-tooltip {
  position: absolute;
  right: 72px;
  background: var(--sage-dark);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}

.agendar-float-btn:hover .agendar-tooltip { opacity: 1; }

/* Instagram */
.instagram-float-btn {
  position: fixed;
  bottom: 96px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(188, 24, 136, 0.3);
  z-index: 998;
  transition: all var(--t-base);
  text-decoration: none;
}

.instagram-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(188, 24, 136, 0.4);
  color: var(--white);
}

.instagram-float-btn .instagram-tooltip {
  position: absolute;
  right: 72px;
  background: #333;
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}

.instagram-float-btn .instagram-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid #333;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.instagram-float-btn:hover .instagram-tooltip { opacity: 1; }

/* Mobile WhatsApp */
.mobile-whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 998;
  transition: all var(--t-base);
  text-decoration: none;
}

.mobile-whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: var(--white);
}

/* =================================================================
   17. UTILITIES
   ================================================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-20 { margin-top: var(--sp-lg); }

.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }

.hidden { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading { opacity: 0.6; pointer-events: none; }
.loaded { opacity: 1; pointer-events: auto; }

.decorative-emoji, .emoji-icon { display: none; }

/* =================================================================
   18. ANIMATIONS
   ================================================================= */

/* Scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gentle float for decorations */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(3deg); }
  50% { transform: translateY(0) rotate(-3deg); }
  75% { transform: translateY(8px) rotate(2deg); }
}

/* Pulse */
@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.4); opacity: 0.5; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in { opacity: 1; transform: none; }
}

/* =================================================================
   19. LAZY LOADING
   ================================================================= */
.lazy-image {
  background: linear-gradient(90deg, var(--sand) 25%, var(--cream) 50%, var(--sand) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  transition: opacity var(--t-base);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.lazy-loaded { animation: fadeIn 0.3s var(--ease-out); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   20. RESPONSIVE — Tablet (≤1024px)
   ================================================================= */
@media (max-width: 1024px) {
  .about-text { columns: 1; }
  .section { padding: var(--sp-3xl) 0; }

  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
    max-width: 500px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* =================================================================
   21. RESPONSIVE — Mobile (≤768px)
   ================================================================= */
@media (max-width: 768px) {
  .top-info-bar-content {
    gap: var(--sp-sm);
    font-size: var(--fs-xs);
    padding: 0 var(--sp-sm);
  }

  .top-info-bar .btn-disponibilidad { display: none; }

  .header {
    top: 36px;
    padding: 8px 0;
  }

  .header-content {
    flex-direction: column;
    gap: 8px;
    padding: 0 var(--sp-md);
  }

  .header-content .btn-acceso { position: relative; left: auto; }

  .btn-header { padding: 10px 20px; font-size: var(--fs-xs); }

  .datetime-display {
    position: absolute;
    top: 4px;
    right: var(--sp-sm);
    font-size: 0.65rem;
  }

  .hero-compact { padding: 90px 0 20px; }

  .hero-compact .logo-container { width: 180px; height: 180px; }
  .hero-compact .brand-name { font-size: 2.2rem; }
  .hero-compact .brand-subtitle { font-size: 1rem; }

  .especialidades-nav .btn-group { gap: var(--sp-sm); }
  .especialidad-btn { font-size: var(--fs-xs); padding: 10px 18px; }

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

  .team-grid { grid-template-columns: 1fr; }
  .team-card-image { height: 260px; }

  .about-content { padding: var(--sp-xl); }
  .about-text { columns: 1; }
  .about-detail { max-width: 95%; }
  .about-grid, .values-grid, .team-overview-grid { grid-template-columns: 1fr; }

  #testimonios-container {
    grid-template-columns: 1fr;
    padding: 0 var(--sp-sm);
  }

  .testimonio-card { padding: var(--sp-lg); }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-item { padding: var(--sp-lg); }

  .video-section { padding: var(--sp-2xl) var(--sp-md); }
  .video-section .section-title { font-size: var(--fs-xl); }

  .footer-content { flex-direction: column; gap: var(--sp-xl); }

  .agendar-float-btn {
    width: 48px; height: 48px; font-size: 20px;
    bottom: 20px; right: 14px;
  }
  .agendar-float-btn .agendar-tooltip { display: none; }

  .instagram-float-btn {
    width: 48px; height: 48px; font-size: 22px;
    bottom: 78px;
  }
  .instagram-float-btn .instagram-tooltip { display: none; }

  .mobile-whatsapp-float { width: 48px; height: 48px; bottom: 20px; left: 14px; }

  .section-title { font-size: var(--fs-2xl); }
  h1 { font-size: var(--fs-3xl); }
}

/* =================================================================
   22. RESPONSIVE — Small Mobile (≤480px)
   ================================================================= */
@media (max-width: 480px) {
  :root {
    --fs-3xl: 2rem;
    --fs-2xl: 1.625rem;
    --fs-xl: 1.25rem;
  }

  .container { padding: 0 var(--sp-md); }

  .hero-compact .logo-container { width: 150px; height: 150px; }
  .hero-compact .brand-name { font-size: 1.8rem; }

  .brand-star { font-size: 1rem; margin: 0 var(--sp-xs); }

  .header-content { gap: 6px; }
  .btn-header { padding: 8px 14px; font-size: 0.75rem; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-contact-box { padding: var(--sp-md); }

  .contact-flip-container { order: 2; }

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

/* =================================================================
   23. PRINT
   ================================================================= */
@media print {
  .top-info-bar, .header, .agendar-float-btn, .instagram-float-btn,
  .mobile-whatsapp-float, .contact-flip-container, .datetime-display { display: none; }

  .hero { padding-top: 20px; min-height: auto; }
  body { background: white; }

  .team-card-image { max-width: 200px; height: auto; }
}
