/* =========================================================
   CUIDARTE · Hoja de estilos principal
   Diseño: minimalismo cálido y refinado
   ========================================================= */

/* ========== 1. RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}

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

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }

p { margin: 0; }

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

/* ========== 2. DESIGN TOKENS ========== */
:root {
  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Colors */
  --c-primary: #1C3A5E;
  --c-primary-hover: #0F2744;
  --c-primary-soft: #E8EEF4;
  --c-teal: #2E7A8E;
  --c-accent: #8DC63F;
  --c-accent-dark: #7AB33A;
  --c-accent-soft: #E6F2D1;
  --c-bg: #FAFCFD;
  --c-bg-alt: #F1F6F9;
  --c-surface: #FFFFFF;
  --c-text: #0F1F30;
  --c-text-muted: #5F6E7D;
  --c-text-subtle: #8A95A0;
  --c-border: #E1E8ED;
  --c-border-soft: #EDF2F5;
  --c-whatsapp: #25D366;
  --c-whatsapp-dark: #128C7E;

  /* Space scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 5rem;
  --sp-16: 7rem;
  --sp-20: 9rem;

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

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15, 31, 48, 0.05);
  --sh-md: 0 4px 12px rgba(15, 31, 48, 0.06), 0 2px 4px rgba(15, 31, 48, 0.03);
  --sh-lg: 0 12px 28px rgba(15, 31, 48, 0.08), 0 4px 8px rgba(15, 31, 48, 0.04);
  --sh-xl: 0 24px 48px rgba(15, 31, 48, 0.10), 0 8px 16px rgba(15, 31, 48, 0.05);

  /* Transition */
  --t-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --header-h: 72px;
}

/* ========== 3. LAYOUT HELPERS ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--sp-6); }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: var(--sp-4);
  background: var(--c-primary);
  color: white;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  z-index: 1000;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: top var(--t-base);
}
.skip-link:focus { top: var(--sp-3); }

/* ========== 4. HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 252, 253, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base), padding var(--t-base);
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-border-soft);
  background: rgba(255, 255, 255, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--c-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand__logo {
  width: 40px;
  height: 40px;
  transition: transform var(--t-base);
}
.brand:hover .brand__logo { transform: rotate(-4deg) scale(1.04); }

.nav { display: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .nav__list {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
  }
  .nav__list a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--c-text-muted);
    position: relative;
    padding: var(--sp-2) 0;
    transition: color var(--t-base);
  }
  .nav__list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--c-accent);
    border-radius: 2px;
    transition: width var(--t-base);
  }
  .nav__list a:hover { color: var(--c-primary); }
  .nav__list a:hover::after { width: 100%; }
}

.header__cta { display: none; }
@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  transition: background var(--t-base);
}
.nav-toggle:hover { background: var(--c-primary-soft); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile nav: slide-down panel (smooth, no max-height glitch) */
@media (max-width: 1023px) {
  .nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-surface);
    padding: var(--sp-3) var(--sp-5) var(--sp-6);
    box-shadow: 0 20px 40px rgba(15, 31, 48, 0.10);
    border-bottom: 1px solid var(--c-border-soft);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 380ms;
    will-change: transform;
  }
  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0s;
  }
  .nav__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .nav__list li {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav.is-open .nav__list li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav.is-open .nav__list li:nth-child(1) { transition-delay: 100ms; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: 140ms; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: 180ms; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: 220ms; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: 260ms; }

  .nav__list a {
    display: flex;
    align-items: center;
    padding: var(--sp-4) var(--sp-3);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--c-primary);
    border-radius: var(--r-md);
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__list a:hover,
  .nav__list a:active {
    background: var(--c-primary-soft);
    color: var(--c-primary-hover);
  }
  .nav__list a:active { transform: scale(0.985); }
}

/* ========== 4b. LANGUAGE TOGGLE ========== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--c-primary-soft);
  border-radius: var(--r-full);
  padding: 3px;
  position: relative;
  flex-shrink: 0;
}

.lang-toggle__btn {
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  border-radius: var(--r-full);
  transition: color 220ms ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
  min-width: 42px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.lang-toggle__btn:hover:not(.is-active) { color: var(--c-primary); }
.lang-toggle__btn.is-active { color: white; }

.lang-toggle__pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--c-primary);
  border-radius: var(--r-full);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  box-shadow: 0 2px 6px rgba(15, 31, 48, 0.18);
  pointer-events: none;
}
.lang-toggle[data-active="en"] .lang-toggle__pill { transform: translateX(100%); }

/* Hide the old header CTA style (kept for compatibility) */
.header__cta { display: none !important; }

/* Legal pages: back button in header (visible from 640px+, brand links home on mobile) */
.page-legal__back-btn { display: none; }
@media (min-width: 640px) {
  .page-legal__back-btn { display: inline-flex; }
}

/* ========== 5. BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.4rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-full);
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base), color var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.btn--sm { padding: 0.55rem 1.1rem; font-size: var(--text-sm); }
.btn--lg { padding: 1rem 1.75rem; font-size: var(--text-base); }

.btn--primary {
  background: var(--c-whatsapp);
  color: white;
  box-shadow: 0 1px 2px rgba(37, 211, 102, 0.3), 0 8px 16px rgba(37, 211, 102, 0.15);
}
.btn--primary:hover {
  background: var(--c-whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(37, 211, 102, 0.35), 0 12px 24px rgba(37, 211, 102, 0.2);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-border);
}
.btn--ghost:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  transform: translateY(-1px);
}

/* ========== 6. COMMON BITS ========== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(141, 198, 63, 0.05); }
}

.eyebrow--center {
  display: flex;
  justify-content: center;
}

.section {
  padding: var(--sp-12) 0;
}
.section--alt { background: var(--c-bg-alt); }

@media (min-width: 768px) {
  .section { padding: var(--sp-16) 0; }
}

.section__header {
  max-width: 720px;
  margin: 0 auto var(--sp-10) auto;
  text-align: center;
}

.section__title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--c-primary);
  margin: var(--sp-4) 0 var(--sp-4) 0;
  font-weight: 500;
}

.section__lead {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* ========== 7. HERO ========== */
.hero {
  position: relative;
  padding: var(--sp-10) 0 var(--sp-12) 0;
  overflow: hidden;
}

@media (min-width: 768px) { .hero { padding: var(--sp-16) 0 var(--sp-20) 0; } }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(141, 198, 63, 0.4), transparent 70%);
  top: -200px;
  right: -150px;
}

.hero__blob--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 122, 142, 0.35), transparent 70%);
  bottom: -250px;
  left: -200px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 58, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 58, 94, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
  position: relative;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--sp-12);
  }
}

.hero__content > * {
  animation: fadeUp 700ms cubic-bezier(0.2, 0, 0.1, 1) both;
}
.hero__content > *:nth-child(1) { animation-delay: 0ms; }
.hero__content > *:nth-child(2) { animation-delay: 120ms; }
.hero__content > *:nth-child(3) { animation-delay: 220ms; }
.hero__content > *:nth-child(4) { animation-delay: 320ms; }
.hero__content > *:nth-child(5) { animation-delay: 420ms; }

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

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  color: var(--c-primary);
  margin: var(--sp-5) 0 var(--sp-5) 0;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero__title-accent {
  display: block;
  font-style: italic;
  color: var(--c-teal);
  font-weight: 400;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-text-muted);
}
.hero__trust svg { color: var(--c-accent-dark); flex-shrink: 0; }

/* Hero visual composition */
.hero__visual {
  position: relative;
  min-height: 400px;
  display: none;
}

@media (min-width: 1024px) { .hero__visual { display: block; } }

.hero__card {
  position: absolute;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--c-border-soft);
  transition: transform var(--t-slow);
}

.hero__card--logo {
  width: 260px;
  height: 260px;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #FFFFFF, #F1F6F9);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.hero__card--quote {
  width: 280px;
  padding: var(--sp-5);
  top: 60%;
  left: -5%;
  transform: rotate(-3deg);
  background: var(--c-primary);
  color: white;
  border-color: var(--c-primary);
}
.hero__card--quote:hover { transform: rotate(-2deg) translateY(-4px); }

.hero__quote {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.hero__card--stat {
  padding: var(--sp-5) var(--sp-6);
  top: 72%;
  right: 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent);
  transform: rotate(4deg);
}
.hero__card--stat:hover { transform: rotate(3deg) translateY(-4px); }

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero__stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: var(--sp-1);
}

/* ========== 8. CARDS (Para quién) ========== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--c-accent-soft), #F4F9E8);
  color: var(--c-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}
.card__icon svg { width: 28px; height: 28px; }

.card:nth-child(2n) .card__icon {
  background: linear-gradient(145deg, var(--c-primary-soft), #F4F7FA);
  color: var(--c-primary);
}

.card__title {
  font-size: 1.25rem;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card__text {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ========== 9. SERVICES ========== */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

@media (min-width: 768px) { .services { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); } }

.service {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

@media (min-width: 768px) { .service { padding: var(--sp-8); } }

.service:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.service--featured {
  background: linear-gradient(145deg, var(--c-primary), #0F2744);
  color: white;
  border-color: var(--c-primary);
  position: relative;
  overflow: hidden;
}
.service--featured::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -40%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 198, 63, 0.15), transparent 60%);
  pointer-events: none;
}

.service__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.service__title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.service:not(.service--featured) .service__title { color: var(--c-primary); }

.service__price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  line-height: 1;
}

.price__amount {
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.service--featured .price__amount { color: var(--c-accent); }
.service:not(.service--featured) .price__amount { color: var(--c-primary); }

.price__currency {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 2px;
}

.service__desc {
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
  opacity: 0.9;
}
.service:not(.service--featured) .service__desc { color: var(--c-text-muted); }

.service__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.service__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 14px;
  background: currentColor;
  opacity: 0.15;
  border-radius: 50%;
}
.service__list li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: calc(0.5em + 3px);
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.8;
}
.service--featured .service__list li::before { background: var(--c-accent); opacity: 0.25; }
.service--featured .service__list li::after { background: var(--c-accent); opacity: 1; }

/* Complementary */
.complementary {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}

@media (min-width: 768px) { .complementary { padding: var(--sp-8); } }

.complementary__title {
  font-size: 1.375rem;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.complementary__lead {
  color: var(--c-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--sp-5);
}

.complementary__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1);
  margin-bottom: var(--sp-6);
  border-top: 1px solid var(--c-border-soft);
}

.complementary__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border-soft);
}

.comp__name {
  font-weight: 500;
  color: var(--c-text);
  font-size: var(--text-base);
}

.comp__sub {
  display: block;
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.comp__price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.complementary__notes {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.55;
}
.note svg { color: var(--c-text-muted); flex-shrink: 0; margin-top: 2px; }

.note--accent {
  background: var(--c-accent-soft);
  color: #4A6B1B;
}
.note--accent svg { color: var(--c-accent-dark); }
.note--accent strong { color: #3E5C16; font-weight: 700; }

/* ========== 10. PROCESO (STEPS) ========== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  counter-reset: step;
}

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }

.step {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

.step__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.step__title {
  font-size: 1.125rem;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.step__text {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* Steps connector line */
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.75rem;
    right: -1.125rem;
    width: var(--sp-5);
    height: 2px;
    background: linear-gradient(to right, var(--c-accent), transparent);
    z-index: 1;
  }
}

/* ========== 11. TEAM ========== */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); } }

.team__card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.team__card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.team__avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--sp-5) auto;
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--c-bg-alt);
}

.team__role {
  font-size: 1.25rem;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.team__text {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
}

.team__disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  text-align: center;
}
.team__disclaimer svg { color: var(--c-accent-dark); }

/* ========== 12. ZONA ========== */
.zona {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}

@media (min-width: 1024px) { .zona { grid-template-columns: 1.1fr 1fr; gap: var(--sp-12); } }

.zona__content .section__title { margin: var(--sp-3) 0; text-align: left; }

.zona__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
}

.zona__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--text-base);
  color: var(--c-text-muted);
  line-height: 1.6;
}
.zona__list li strong { color: var(--c-primary); font-weight: 600; }
.zona__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--c-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.18);
}

.zona__visual {
  display: flex;
  justify-content: center;
}
.zona__map {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-full);
  padding: var(--sp-5);
  box-shadow: var(--sh-md);
}

/* ========== 13. FAQ ========== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq__item {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq__item[open] { border-color: var(--c-border); box-shadow: var(--sh-sm); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--c-primary);
  list-style: none;
  cursor: pointer;
  transition: background var(--t-base);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { background: var(--c-bg-alt); }
.faq__question svg {
  flex-shrink: 0;
  color: var(--c-text-muted);
  transition: transform var(--t-base);
}
.faq__item[open] .faq__question svg { transform: rotate(180deg); color: var(--c-accent-dark); }

.faq__answer {
  padding: 0 var(--sp-6) var(--sp-5) var(--sp-6);
  color: var(--c-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
}
.faq__answer strong { color: var(--c-primary); font-weight: 600; }

/* ========== 14. CONTACT ========== */
.section--contact {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%);
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) { .contact { grid-template-columns: 1.1fr 1fr; } }

.contact__card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) { .contact__card { padding: var(--sp-8); } }

.contact__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.contact__card--primary {
  background: linear-gradient(145deg, #25D366, #128C7E);
  border-color: transparent;
  color: white;
}
.contact__card--primary::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 60%);
  pointer-events: none;
}
.contact__card--primary:hover { box-shadow: 0 20px 40px rgba(37, 211, 102, 0.25); }

.contact__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--sp-2);
}

.contact__icon--wa {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  backdrop-filter: blur(4px);
}

.contact__icon--mail {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.contact__body { display: flex; flex-direction: column; gap: var(--sp-2); position: relative; z-index: 1; }

.contact__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.contact__card--primary .contact__label { color: rgba(255, 255, 255, 0.85); }
.contact__card:not(.contact__card--primary) .contact__label { color: var(--c-teal); }

.contact__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.contact__card:not(.contact__card--primary) .contact__title { color: var(--c-primary); }

.contact__text {
  font-size: var(--text-base);
  line-height: 1.55;
  opacity: 0.9;
  margin-bottom: var(--sp-2);
}
.contact__card:not(.contact__card--primary) .contact__text { color: var(--c-text-muted); opacity: 1; }

.contact__action {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-top: auto;
  transition: gap var(--t-base);
}
.contact__card:hover .contact__action { gap: var(--sp-3); }
.contact__card:not(.contact__card--primary) .contact__action { color: var(--c-primary); }

.contact__hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  text-align: center;
  flex-wrap: wrap;
}
.contact__hours svg { color: var(--c-text-muted); flex-shrink: 0; }
.contact__hours strong { color: var(--c-primary); font-weight: 600; }

/* ========== 15. FOOTER ========== */
.site-footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--sp-12) 0 var(--sp-6) 0;
  font-size: var(--text-sm);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: white;
  margin-bottom: var(--sp-3);
}

.footer__logo-img { width: 40px; height: 40px; color: white; }

.footer__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--sp-3);
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 320px;
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-4);
}

.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__col a { transition: color var(--t-base); }
.footer__col a:hover { color: var(--c-accent); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
}

@media (min-width: 640px) { .footer__bottom { flex-direction: row; } }

.footer__copy { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.6); }

.footer__legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; justify-content: center; }
.footer__legal a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--t-base);
}
.footer__legal a:hover { color: white; }

/* ========== 16. FLOATING WHATSAPP ========== */
.wa-float {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  width: 60px;
  height: 60px;
  background: var(--c-whatsapp);
  color: white;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.5);
  z-index: 90;
  transition: transform var(--t-base), box-shadow var(--t-base);
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ========== 17. COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-4);
  left: var(--sp-4);
  right: var(--sp-4);
  max-width: 640px;
  margin: 0 auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-xl);
  z-index: 95;
  animation: cookieUp 500ms cubic-bezier(0.2, 0, 0.1, 1) 800ms both;
}

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

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .cookie-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

.cookie-banner__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 2px;
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* ========== 18. SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.2, 0, 0.1, 1), transform 700ms cubic-bezier(0.2, 0, 0.1, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Staggered within grids */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.2, 0, 0.1, 1), transform 600ms cubic-bezier(0.2, 0, 0.1, 1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }

/* ========== 19. FOCUS VISIBLE (A11Y) ========== */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 4px;
}

/* ========== 20. LEGAL PAGES ========== */
.page-legal {
  padding: var(--sp-10) 0 var(--sp-12) 0;
}

@media (min-width: 768px) { .page-legal { padding: var(--sp-12) 0 var(--sp-16) 0; } }

.page-legal__inner { max-width: 780px; margin: 0 auto; }

.page-legal__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}

.page-legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.page-legal__meta {
  color: var(--c-text-subtle);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-8);
}

.page-legal__notice {
  background: #FEF5E7;
  border: 1px solid #F4D791;
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-8);
  color: #7A5210;
  font-size: var(--text-sm);
  line-height: 1.6;
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.page-legal__notice svg { flex-shrink: 0; margin-top: 2px; color: #B8860B; }
.page-legal__notice strong { display: block; color: #5A3D0B; margin-bottom: 4px; }

.page-legal h2 {
  font-size: 1.5rem;
  color: var(--c-primary);
  margin: var(--sp-8) 0 var(--sp-3) 0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-legal h3 {
  font-size: 1.125rem;
  color: var(--c-primary);
  margin: var(--sp-5) 0 var(--sp-2) 0;
  font-weight: 600;
  font-family: var(--font-body);
}

.page-legal p {
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}

.page-legal ul {
  margin: var(--sp-3) 0;
  padding-left: 0;
  list-style: none;
}

.page-legal ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-2);
}
.page-legal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
}

.page-legal a {
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-underline-offset: 3px;
  transition: color var(--t-base);
}
.page-legal a:hover { color: var(--c-teal); }

.page-legal__back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  font-weight: 600;
  color: var(--c-primary);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: gap var(--t-base);
}
.page-legal__back:hover { gap: var(--sp-3); }

/* ========== 21. UTILITY ========== */
.u-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;
}
