/* ===========================================================
   ÓPTICA INFINITO · Sistema de diseño
   Glassmorphism · Light & Dark · Mobile-first responsive
   Paleta basada en logo: teal #398C92
   Tipografía: Fraunces (display) + DM Sans (body)
   =========================================================== */

/* -----------------------------------------------------------
   1. RESET & BASE
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  background: var(--brand);
  color: #fff;
  z-index: 9999;
  border-radius: 8px;
}

/* -----------------------------------------------------------
   2. TOKENS · LIGHT MODE (default)
   ----------------------------------------------------------- */
:root {
  /* Marca */
  --brand: #398C92;          /* Teal del logo */
  --brand-600: #2E7378;
  --brand-700: #235A5F;
  --brand-300: #6FB1B6;
  --brand-100: #DCEEEF;
  --accent: #F2A65A;         /* Acento cálido complementario */

  /* Neutrales */
  --bg: #F4F8F8;
  --bg-2: #E9F1F2;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --soft: rgba(255, 255, 255, 0.45);
  --ink: #0F2A2C;
  --ink-2: #2C4548;
  --muted: #5C7376;
  --line: rgba(15, 42, 44, 0.08);
  --line-strong: rgba(15, 42, 44, 0.16);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 10px 40px -10px rgba(15, 42, 44, 0.18),
                  0 2px 8px -2px rgba(15, 42, 44, 0.08),
                  inset 0 1px 0 rgba(255, 255, 255, 0.8);

  /* Tipografía */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Spacing scale */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Transiciones */
  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t: 280ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 600ms cubic-bezier(.2,.7,.2,1);

  --container: 1200px;
}

/* -----------------------------------------------------------
   3. TOKENS · DARK MODE
   ----------------------------------------------------------- */
[data-theme="dark"] {
  --bg: #08191B;
  --bg-2: #0E2528;
  --surface: rgba(20, 46, 49, 0.55);
  --surface-strong: rgba(20, 46, 49, 0.78);
  --soft: rgba(20, 46, 49, 0.4);
  --ink: #EDF6F6;
  --ink-2: #C7D8D9;
  --muted: #8FA9AB;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --glass-bg: rgba(20, 46, 49, 0.45);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.55),
                  0 4px 12px -4px rgba(0, 0, 0, 0.35),
                  inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --brand-300: #7CC2C7;
  --brand-100: #1A3F42;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #08191B;
    --bg-2: #0E2528;
    --surface: rgba(20, 46, 49, 0.55);
    --surface-strong: rgba(20, 46, 49, 0.78);
    --soft: rgba(20, 46, 49, 0.4);
    --ink: #EDF6F6;
    --ink-2: #C7D8D9;
    --muted: #8FA9AB;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --glass-bg: rgba(20, 46, 49, 0.45);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.55),
                    0 4px 12px -4px rgba(0, 0, 0, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}

/* -----------------------------------------------------------
   4. BODY & TIPOGRAFÍA
   ----------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 110% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%),
    radial-gradient(1000px 600px at 50% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

h1.display { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2.display { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
h4 { font-size: 1rem; font-weight: 600; color: var(--ink); }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--ink-2);
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  padding: .4rem .85rem;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* -----------------------------------------------------------
   5. GLASS UTILITY CLASSES
   ----------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
}
.glass-soft {
  background: var(--soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
}

/* -----------------------------------------------------------
   6. FONDO ORGÁNICO (orbs animados)
   ----------------------------------------------------------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}
.orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  top: -120px; right: -80px;
  animation: orbFloat 22s ease-in-out infinite;
}
.orb--2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--brand-300) 0%, transparent 70%);
  bottom: 5%; left: -120px;
  animation: orbFloat 28s ease-in-out infinite reverse;
}
.orb--3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 40%; right: 10%;
  opacity: .28;
  animation: orbFloat 32s ease-in-out infinite;
}
.orb--4 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--brand-700) 0%, transparent 70%);
  top: 60%; left: 30%;
  opacity: .22;
  animation: orbFloat 26s ease-in-out infinite reverse;
}
[data-theme="dark"] .orb { opacity: .35; }
[data-theme="dark"] .orb--3 { opacity: .18; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -60px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(.95); }
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
[data-theme="dark"] .bg-grain { opacity: .07; }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* -----------------------------------------------------------
   7. NAVEGACIÓN
   ----------------------------------------------------------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .9rem 0;
}
.nav {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .75rem .75rem .75rem 1rem;
  border-radius: var(--r-pill);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.nav__brand img {
  height: 38px;
  width: auto;
  display: block;
}
[data-theme="dark"] .nav__brand {
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 10px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.3);
}
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav__links a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color var(--t-fast);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width var(--t), left var(--t);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; left: 0; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.theme-toggle {
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  position: relative;
  transition: background var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover { transform: rotate(15deg); background: var(--brand-100); }
.theme-toggle svg {
  width: 20px; height: 20px;
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav__cta { padding: .65rem 1.25rem; font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.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); }

.nav-mobile {
  width: min(100% - 2rem, var(--container));
  margin: .75rem auto 0;
  padding: 1rem;
  background: var(--surface-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
}
.nav-mobile ul { display: grid; gap: .25rem; }
.nav-mobile a {
  display: block;
  padding: .8rem 1rem;
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--ink);
}
.nav-mobile a:hover { background: var(--brand-100); }
.nav-mobile .btn { display: inline-flex; margin-top: .5rem; }
.nav-mobile .btn--primary { color: #fff; }
.nav-mobile .btn--primary:hover { background: var(--brand-600); color: #fff; }

/* -----------------------------------------------------------
   8. BUTTONS
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-fast); }
.btn img { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--brand) 60%, transparent),
              inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--brand) 70%, transparent),
              inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--brand-100); border-color: var(--brand); color: var(--brand-700); }
[data-theme="dark"] .btn--ghost:hover { color: var(--brand-300); }

.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--block { width: 100%; justify-content: center; }

/* WhatsApp button variant */
.btn--wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, .55),
              inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--wa:hover {
  background: #1FA855;
  transform: translateY(-2px);
}

/* -----------------------------------------------------------
   9. SECTIONS · base
   ----------------------------------------------------------- */
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
section[id] { scroll-margin-top: 90px; }
.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.section-head--left {
  text-align: left;
  margin: 0 0 2rem;
  justify-items: start;
}
.section-head .lead { margin-inline: auto; }

/* -----------------------------------------------------------
   10. HERO
   ----------------------------------------------------------- */
.hero { padding-top: clamp(2rem, 4vw, 3rem); }
.hero__inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__copy { display: grid; gap: 1.5rem; align-content: center; }
.hero__copy .eyebrow { justify-self: start; }
.hero__copy .lead { max-width: 56ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

.hero__badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.hero__badges li {
  display: grid;
  gap: .15rem;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 1rem;
}
.hero__badges li:last-child { border-right: 0; padding-right: 0; }
.hero__badges strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--brand);
  font-weight: 600;
  letter-spacing: -.02em;
}
.hero__badges span { font-size: .82rem; color: var(--muted); }

.hero__media {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__photo {
  position: relative;
  padding: 14px;
  border-radius: var(--r-xl);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  rotate: 1.5deg;
  transition: rotate var(--t-slow);
}
.hero__photo:hover { rotate: 0deg; }
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--r-xl) - 14px);
}
.hero__photo-caption {
  position: absolute;
  bottom: 1.4rem; left: 1.4rem; right: 1.4rem;
  padding: .7rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; gap: .5rem;
}

.hero__chip {
  position: absolute;
  top: -1rem; left: -1rem;
  padding: .65rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand-700);
  display: flex; align-items: center; gap: .5rem;
  rotate: -3deg;
  z-index: 2;
}
[data-theme="dark"] .hero__chip { color: var(--brand-300); }
.hero__chip svg { width: 16px; height: 16px; fill: var(--brand); }

/* -----------------------------------------------------------
   11. FEATURES
   ----------------------------------------------------------- */
.features { padding-top: 1rem; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.feature {
  padding: 1.75rem;
  display: grid;
  gap: .65rem;
  align-content: start;
  transition: transform var(--t), box-shadow var(--t);
}
.feature:hover { transform: translateY(-6px); }
.feature__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-300) 100%);
  color: #fff;
  margin-bottom: .35rem;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--brand) 50%, transparent);
}
.feature__icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--ink-2); font-size: .96rem; }

/* -----------------------------------------------------------
   12. SERVICES
   ----------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service {
  padding: 2rem 1.75rem;
  display: grid;
  gap: .85rem;
  align-content: start;
  position: relative;
  transition: transform var(--t), box-shadow var(--t);
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.service:hover { transform: translateY(-6px); }
.service:hover::before { opacity: 1; }
.service__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
  opacity: .55;
}
.service p { color: var(--ink-2); }
.service ul { display: grid; gap: .5rem; margin-top: .5rem; }
.service li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .92rem;
  color: var(--ink-2);
}
.service li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.service--accent {
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--brand) 14%, var(--glass-bg)),
              var(--glass-bg));
  border-color: color-mix(in srgb, var(--brand) 35%, var(--glass-border));
}

.service--cta {
  background: linear-gradient(160deg,
              color-mix(in srgb, var(--brand) 22%, var(--glass-bg)),
              color-mix(in srgb, var(--brand) 8%, var(--glass-bg)));
  border-color: color-mix(in srgb, var(--brand) 35%, var(--glass-border));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}
.service--cta h3 { font-size: 1.5rem; }
.service--cta p { color: var(--ink-2); }
.service--cta .btn { margin-top: .25rem; }
[data-theme="dark"] .service--cta {
  background: linear-gradient(160deg,
              color-mix(in srgb, var(--brand) 30%, var(--glass-bg)),
              color-mix(in srgb, var(--brand) 12%, var(--glass-bg)));
}

/* -----------------------------------------------------------
   13. ABOUT
   ----------------------------------------------------------- */
.about__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about__photo {
  position: relative;
  padding: 12px;
  border-radius: var(--r-xl);
  overflow: visible;
  rotate: -2deg;
  transition: rotate var(--t-slow);
}
.about__photo:hover { rotate: 0deg; }
.about__photo img {
  border-radius: calc(var(--r-xl) - 12px);
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about__photo-deco {
  position: absolute;
  inset: -1.2rem -1.2rem auto auto;
  width: 110px; height: 110px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(20px);
  opacity: .8;
  z-index: -1;
}
.about__copy { display: grid; gap: 1.1rem; align-content: center; }
.about__copy .eyebrow { justify-self: start; }
.about__copy p { color: var(--ink-2); }
.about__points { display: grid; gap: .6rem; margin: .5rem 0 .25rem; }
.about__points li {
  display: flex; align-items: center; gap: .65rem;
  font-weight: 500;
  color: var(--ink);
}
.about__points svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--brand);
  border-radius: 50%;
  padding: 4px;
}
.about__copy .btn { justify-self: start; margin-top: .5rem; }

/* -----------------------------------------------------------
   14. GALLERY
   ----------------------------------------------------------- */
.gallery__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
  min-height: 540px;
}
.gallery__item {
  overflow: hidden;
  position: relative;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item picture { display: block; height: 100%; }
.gallery__item--lg {
  grid-row: span 2;
}
.gallery__item figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: .55rem .9rem;
  font-size: .82rem;
  font-weight: 500;
  background: var(--soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--ink);
}
.gallery__item--text {
  display: grid;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--brand) 22%, var(--glass-bg)),
              var(--glass-bg));
}
.gallery__item--text blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
}
.gallery__item--text cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .85rem;
  color: var(--muted);
  margin-top: .8rem;
}

/* -----------------------------------------------------------
   15. TESTIMONIALS
   ----------------------------------------------------------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: transform var(--t);
}
.testimonial:hover { transform: translateY(-5px); }
.stars {
  color: #F2A65A;
  letter-spacing: 4px;
  font-size: 1.1rem;
}
.testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}
.testimonial footer { display: grid; }
.testimonial strong { color: var(--ink); }
.testimonial span { font-size: .85rem; color: var(--muted); }

/* -----------------------------------------------------------
   16. FAQ
   ----------------------------------------------------------- */
.faq__inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq__list { display: grid; gap: .75rem; }
.faq__item {
  padding: 0;
  overflow: hidden;
  transition: background var(--t-fast);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.5rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 1.5rem; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--ink-2);
  font-size: .96rem;
  line-height: 1.6;
}

/* -----------------------------------------------------------
   17b. BRANCHES (Sedes multi-ubicación)
   ----------------------------------------------------------- */
.branches__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.branch {
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  position: relative;
  transition: transform var(--t), box-shadow var(--t);
  overflow: hidden;
}
.branch::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-300) 100%);
  opacity: .8;
}
.branch:hover { transform: translateY(-6px); }

.branch__head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .25rem;
}
.branch__pin {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-300) 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--brand) 50%, transparent);
}
.branch__pin svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.branch__head > div {
  flex: 1;
  display: grid;
  gap: 2px;
}
.branch__city {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand);
}
.branch__head h3 {
  font-size: 1.25rem;
  margin: 0;
}
.branch__badge {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  padding: .25rem .55rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  white-space: nowrap;
}

.branch__addr {
  font-size: .94rem;
  color: var(--ink-2);
  line-height: 1.5;
  padding-bottom: .85rem;
  border-bottom: 1px dashed var(--line-strong);
}

.branch__meta {
  display: grid;
  gap: .55rem;
}
.branch__meta li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .9rem;
  color: var(--ink-2);
}
.branch__meta svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: var(--brand);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.branch__meta a {
  color: var(--ink);
  font-weight: 500;
  transition: color var(--t-fast);
}
.branch__meta a:hover { color: var(--brand); }

.branch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.branch__actions .btn--primary {
  background: #25D366;
  box-shadow: 0 6px 16px -6px rgba(37, 211, 102, .55),
              inset 0 1px 0 rgba(255,255,255,.25);
}
.branch__actions .btn--primary:hover {
  background: #1FA855;
}

.contact__note {
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: .25rem;
}

/* -----------------------------------------------------------
   17c. SOCIAL en footer
   ----------------------------------------------------------- */
.footer__social {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}
.footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.footer__social a:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-3px);
}
.footer__social svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.footer__social a[aria-label="Facebook"] svg { fill: currentColor; stroke: none; }
.footer__social a[aria-label="WhatsApp"] {
  background: transparent;
  border-color: transparent;
  padding: 0;
}
.footer__social a[aria-label="WhatsApp"]:hover {
  background: transparent;
  transform: translateY(-3px) scale(1.05);
}
.footer__social a[aria-label="WhatsApp"] img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* -----------------------------------------------------------
   17. CONTACT
   ----------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 1.5rem;
}
.contact__info {
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.contact__info h3 { margin-bottom: .25rem; }
.contact__info h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-top: .5rem;
}
.contact__info ul { display: grid; gap: .85rem; }
.contact__info li {
  display: flex; align-items: center; gap: .85rem;
  font-size: .95rem;
}
.contact__info a { font-weight: 500; transition: color var(--t-fast); }
.contact__info a:hover { color: var(--brand); }

.contact__ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--brand-100);
  color: var(--brand-700);
  flex-shrink: 0;
}
[data-theme="dark"] .contact__ico { background: rgba(57,140,146,.18); color: var(--brand-300); }
.contact__ico svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.contact__hours {
  background: color-mix(in srgb, var(--brand) 6%, transparent);
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  margin-top: .25rem;
}
.contact__hours li {
  display: flex !important;
  justify-content: space-between;
  font-size: .9rem;
}

.contact__social { display: flex; gap: .5rem; margin-top: .5rem; }
.contact__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.contact__social a:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--brand);
}
.contact__social svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.contact__social a[aria-label="Facebook"] svg { fill: currentColor; stroke: none; }
.contact__social a[aria-label="WhatsApp"] {
  background: transparent;
  border-color: transparent;
  padding: 0;
}
.contact__social a[aria-label="WhatsApp"]:hover {
  background: transparent;
  transform: translateY(-3px) scale(1.05);
}
.contact__social a[aria-label="WhatsApp"] img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.contact__form {
  padding: 2rem;
  display: grid;
  gap: 1rem;
}
.contact__form h3 { margin-bottom: .25rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  font-size: .95rem;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; }

.check {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .85rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.check input {
  margin-top: .2rem;
  width: 18px; height: 18px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.form-status {
  font-size: .9rem;
  font-weight: 500;
  color: var(--brand-700);
  min-height: 1em;
}
[data-theme="dark"] .form-status { color: var(--brand-300); }
.form-status.error { color: #C0392B; }
[data-theme="dark"] .form-status.error { color: #FF8A75; }

/* -----------------------------------------------------------
   18. FOOTER
   ----------------------------------------------------------- */
.footer { padding: 4rem 0 2rem; }
.footer__inner {
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer__brand img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
[data-theme="dark"] .footer__brand img {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.3);
}
.footer__brand p {
  color: var(--ink-2);
  font-size: .92rem;
  max-width: 32ch;
}
.footer__col h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a, .footer__col li {
  font-size: .94rem;
  color: var(--ink-2);
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--brand); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0 0;
  margin-top: 1.5rem;
  font-size: .85rem;
  color: var(--muted);
}
.footer__bottom a { transition: color var(--t-fast); }
.footer__bottom a:hover { color: var(--brand); }

/* -----------------------------------------------------------
   19. WHATSAPP FLOATING
   ----------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  filter: drop-shadow(0 14px 28px rgba(37, 211, 102, .45))
          drop-shadow(0 4px 8px rgba(0, 0, 0, .15));
  z-index: 90;
  transition: transform var(--t-fast);
  isolation: isolate;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, .35);
  animation: waPulse 2.4s ease-in-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.5); opacity: 0; }
}

/* -----------------------------------------------------------
   20. ANIMACIÓN DE ENTRADA (reveal)
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Stagger en hero al cargar */
.hero__copy > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn .8s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .15s; }
.hero__copy > *:nth-child(3) { animation-delay: .25s; }
.hero__copy > *:nth-child(4) { animation-delay: .35s; }
.hero__copy > *:nth-child(5) { animation-delay: .45s; }
.hero__media {
  opacity: 0;
  transform: translateY(20px) scale(.97);
  animation: heroIn .9s cubic-bezier(.2,.7,.2,1) .25s forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__copy > *, .hero__media { animation: none; opacity: 1; transform: none; }
}

/* -----------------------------------------------------------
   21. RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__photo { max-width: 460px; margin: 0 auto; }
  .hero__chip { left: 1rem; top: -0.75rem; }

  .about__inner { grid-template-columns: 1fr; }
  .about__photo { max-width: 480px; margin: 0 auto; }

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

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

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }
  .gallery__item--lg { grid-column: span 2; grid-row: auto; height: 360px; }
  .gallery__item { height: 280px; }
  .gallery__item--text { height: auto; }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav { padding: .5rem .5rem .5rem 1rem; }

  section { padding: 4rem 0; }
  h1.display { font-size: clamp(2.1rem, 9vw, 3rem); }
  h2.display { font-size: clamp(1.75rem, 7vw, 2.4rem); }

  .hero__badges { grid-template-columns: 1fr; gap: .85rem; padding: 1rem 1.25rem; }
  .hero__badges li { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .85rem; }
  .hero__badges li:last-child { border-bottom: 0; padding: 0; }

  .field-row { grid-template-columns: 1fr; }

  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--lg { grid-column: auto; height: 320px; }

  .footer__inner { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
  .footer__brand { grid-column: auto; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .service { padding: 1.75rem 1.5rem; }
  .service__num { font-size: 2.2rem; }

  .contact__form, .contact__info { padding: 1.5rem; }

  .wa-float { right: 1rem; bottom: 1rem; width: 58px; height: 58px; }
}

@media (max-width: 420px) {
  .nav__brand img { height: 34px; }
  .btn { padding: .65rem 1.1rem; font-size: .9rem; }
  .btn--lg { padding: .85rem 1.4rem; font-size: .95rem; }
  .hero__ctas { display: grid; }
  .hero__ctas .btn { justify-content: center; }
}

/* Print friendly */
@media print {
  .nav-wrap, .wa-float, .bg-orbs, .bg-grain { display: none !important; }
  body { background: #fff; color: #000; }
  .glass { background: #fff; box-shadow: none; border: 1px solid #ccc; }
}
