/* ============================================================
   XYRA STUDIO · styles.css
   Design System: Navy & Ember Origami
   Mobile-first · Vanilla CSS · WCAG 2.1 AA
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES (Design Tokens)
   ============================================================ */
:root {
  /* Colors — Primary */
  --navy:        #1a2744;
  --navy-light:  #2d3f5e;
  --navy-dark:   #0f1829;

  /* Colors — Accent */
  --ember:       #ff6b35;
  --ember-light: #ff8c5a;
  --ember-dark:  #e55525;

  /* Colors — Neutral */
  --white:       #ffffff;
  --cream:       #faf8f5;
  --gray-100:    #f5f5f5;
  --gray-200:    #e0e0e0;
  --gray-300:    #c4c4c4;
  --gray-400:    #9e9e9e;
  --gray-600:    #616161;
  --gray-800:    #424242;

  /* Semantic */
  --success: #4caf50;
  --warning: #ff9800;
  --error:   #f44336;

  /* Typography */
  --font-heading: 'DM Serif Display', 'Times New Roman', serif;
  --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h1:   clamp(2rem, 4vw, 3rem);
  --fs-h2:   clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3:   clamp(1.25rem, 2vw, 1.75rem);
  --fs-base: 1rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  --lh-tight:  1.2;
  --lh-base:   1.7;
  --lh-snug:   1.4;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* Container */
  --container-max:    1280px;
  --container-narrow: 880px;
  --container-pad:    clamp(1rem, 4vw, 2rem);

  /* Radii */
  --r-sm:    8px;
  --r-md:    14px;
  --r-lg:    22px;
  --r-xl:    32px;
  --r-pill:  999px;
  --r-round: 50%;

  /* Shadows */
  --shadow-sm:    0 2px 4px rgba(15, 24, 41, 0.06);
  --shadow-md:    0 6px 20px rgba(15, 24, 41, 0.08);
  --shadow-lg:    0 14px 40px rgba(15, 24, 41, 0.12);
  --shadow-xl:    0 24px 60px rgba(15, 24, 41, 0.18);
  --shadow-ember: 0 12px 32px rgba(255, 107, 53, 0.30);

  /* Transitions */
  --t-fast:   180ms cubic-bezier(.4,0,.2,1);
  --t-normal: 280ms cubic-bezier(.4,0,.2,1);
  --t-slow:   480ms cubic-bezier(.4,0,.2,1);
  --t-bounce: 420ms cubic-bezier(.34,1.56,.64,1);

  /* z-index */
  --z-base:    1;
  --z-sticky:  90;
  --z-nav:     100;
  --z-overlay: 110;
  --z-modal:   120;
  --z-toast:   130;
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; tab-size: 4; scroll-padding-top: 100px; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: var(--lh-tight); letter-spacing: -0.01em; color: var(--navy-dark); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { color: var(--gray-800); }

/* Focus visible — accessibility */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-5);
  background: var(--navy);
  color: var(--white);
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* ============================================================
   3. UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--narrow { max-width: var(--container-narrow); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ember);
  color: var(--white);
  border-color: var(--ember);
  box-shadow: var(--shadow-ember);
}
.btn--primary:hover { background: var(--ember-light); border-color: var(--ember-light); box-shadow: 0 16px 40px rgba(255,107,53,.40); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--sm    { padding: 0.55rem 1rem; min-height: 38px; font-size: var(--fs-sm); }
.btn--lg    { padding: 1.05rem 2rem; font-size: 1.0625rem; min-height: 56px; }
.btn--block { width: 100%; }

/* Sections shared */
.section { padding: var(--space-9) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy-dark); color: var(--white); }
.section--navy h2,
.section--navy h3,
.section--navy p { color: var(--white); }

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--space-3);
}
.section__header--light .section__eyebrow { color: var(--ember-light); }
.section__title { margin-bottom: var(--space-4); }
.section__sub   { font-size: 1.0625rem; color: var(--gray-600); }
.section__header--light .section__sub { color: rgba(255,255,255,.78); }
.section__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

/* Animation hooks */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.animate-on-scroll[data-anim="scaleIn"] { transform: scale(.92); }
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================================
   4. NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid rgba(15,24,41,.06);
  transition: padding var(--t-normal), background var(--t-normal), box-shadow var(--t-normal);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 4px 24px rgba(15,24,41,.07);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 1.1rem 0;
  transition: padding var(--t-normal);
}
.nav.is-scrolled .nav__inner { padding: 0.6rem 0; }

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  flex-shrink: 0;
  z-index: 2;
}
.nav__logo-mark { width: 38px; height: 38px; transition: transform var(--t-bounce); object-fit: contain; background: transparent; }
.nav__logo:hover .nav__logo-mark { transform: rotate(-8deg) scale(1.05); }
.nav__logo svg.nav__logo-mark { display: none; } /* fallback hidden, prefer img */
.nav__logo-text { letter-spacing: -.02em; }
.nav__logo-accent { color: var(--ember); margin-left: 2px; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  flex: 1;
  justify-content: flex-end;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav__link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.nav__link:hover { color: var(--ember-dark); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  line-height: 1.4;
}
.nav__badge--popular { background: var(--ember); color: var(--white); }
.nav__badge--new     { background: var(--navy); color: var(--white); }

.nav__cta { padding: 0.65rem 1.25rem; min-height: 42px; font-size: 0.9rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  z-index: 2;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  margin-inline: auto;
  transition: transform var(--t-normal), opacity var(--t-normal);
}
.nav__close { display: none; }

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,24,41,.55);
  backdrop-filter: blur(6px);
  z-index: calc(var(--z-nav) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}
body.menu-open .nav__overlay { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
  color: var(--white);
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(255,107,53,.22), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(45,63,94,.55), transparent 65%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 70%, var(--navy-light) 100%);
}
.hero__particles { position: absolute; inset: 0; }
.hero__particles span {
  position: absolute;
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0;
  animation: floatParticle 14s linear infinite;
  filter: blur(.5px);
}
.hero__particles span:nth-child(1) { left: 8%;  bottom: -10px; animation-delay: 0s;  width: 4px; height: 4px; }
.hero__particles span:nth-child(2) { left: 22%; bottom: -10px; animation-delay: 2s;  background: var(--ember-light); }
.hero__particles span:nth-child(3) { left: 38%; bottom: -10px; animation-delay: 4s;  width: 3px; height: 3px; }
.hero__particles span:nth-child(4) { left: 52%; bottom: -10px; animation-delay: 1s;  background: var(--white); opacity: 0; }
.hero__particles span:nth-child(5) { left: 68%; bottom: -10px; animation-delay: 6s;  background: var(--ember-light); }
.hero__particles span:nth-child(6) { left: 78%; bottom: -10px; animation-delay: 3s;  width: 5px; height: 5px; }
.hero__particles span:nth-child(7) { left: 88%; bottom: -10px; animation-delay: 5s;  width: 3px; height: 3px; }
.hero__particles span:nth-child(8) { left: 14%; bottom: -10px; animation-delay: 8s; }
.hero__particles span:nth-child(9) { left: 60%; bottom: -10px; animation-delay: 10s; background: var(--white); }
.hero__particles span:nth-child(10) { left: 32%; bottom: -10px; animation-delay: 7s; width: 4px; height: 4px; }

/* Interactive canvas layer */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Cursor spotlight */
.hero__spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(
    600px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(255, 107, 53, 0.08),
    rgba(255, 140, 90, 0.04) 35%,
    transparent 70%
  );
}
.hero__spotlight.is-active { opacity: 1; }

/* Orbit system around colibri */
.hero__orbit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.hero__orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 53, 0.12);
}
.hero__orbit-ring--1 {
  width: 90%;
  aspect-ratio: 1;
  animation: orbitSpin 25s linear infinite;
}
.hero__orbit-ring--2 {
  width: 110%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.06);
  animation: orbitSpin 40s linear infinite reverse;
}
.hero__orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember), 0 0 24px rgba(255, 107, 53, 0.3);
  animation: orbitDot 12s linear infinite;
}
.hero__orbit-dot--1 {
  animation-duration: 12s;
  --orbit-radius: 45%;
}
.hero__orbit-dot--2 {
  width: 5px; height: 5px;
  background: var(--ember-light);
  animation-duration: 18s;
  animation-direction: reverse;
  --orbit-radius: 55%;
  animation-delay: -4s;
}
.hero__orbit-dot--3 {
  width: 4px; height: 4px;
  background: var(--white);
  box-shadow: 0 0 8px rgba(255,255,255,.5);
  animation-duration: 22s;
  --orbit-radius: 48%;
  animation-delay: -8s;
}

/* Magnetic button effect */
.btn--magnetic {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow var(--t-normal),
              background var(--t-normal),
              color var(--t-normal);
  will-change: transform;
}

/* Parallax content transition */
[data-parallax-depth] {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  padding-block: var(--space-8);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
  margin-bottom: var(--space-5);
}
.hero__eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 16px var(--ember);
  animation: pulse 2s ease-in-out infinite;
}

.hero__headline {
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-5);
}
.hero__headline .word { display: inline-block; margin-right: .25em; }
.hero__headline .word--accent {
  color: var(--ember);
  background: linear-gradient(135deg, var(--ember-light), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Shimmer effect */
  background-size: 200% 200%;
  animation: shimmerAccent 4s ease-in-out infinite;
}

.hero__sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,.78);
  margin-bottom: var(--space-7);
  max-width: 560px;
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 0.92rem;
  color: rgba(255,255,255,.72);
}
.hero__trust strong { color: var(--white); font-weight: 700; margin-right: 4px; }

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual-glow {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,107,53,.35), transparent 70%);
  filter: blur(60px);
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite;
}
.hero__colibri {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  animation: floatY 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.3));
  cursor: pointer;
  transition: filter 0.3s ease;
  mix-blend-mode: screen;
}
.hero__colibri:hover {
  filter: drop-shadow(0 20px 40px rgba(255,107,53,.4));
  animation-play-state: paused;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 46px;
  border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,.4);
}
.hero__scroll span {
  display: block;
  width: 4px; height: 8px;
  background: var(--ember);
  border-radius: 4px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
.hero__scroll:hover { border-color: var(--ember); }

/* ============================================================
   6. BENTO (Servicios Overview)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
  overflow: hidden;
  isolation: isolate;
}
.bento__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 2px;
  background: linear-gradient(135deg, transparent 50%, var(--ember) 100%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-normal);
  pointer-events: none;
}
.bento__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.bento__card:hover::before { opacity: 1; }

.bento__card--lg {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-color: transparent;
}
.bento__card--lg h3,
.bento__card--lg p,
.bento__card--lg li { color: var(--white); }
.bento__card--lg .bento__icon { color: var(--ember-light); background: rgba(255,107,53,.12); }
.bento__card--lg .bento__features li { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.bento__card--lg .bento__link { color: var(--ember-light); }
.bento__card--lg .bento__link:hover { color: var(--white); }

.bento__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: rgba(255,107,53,.10);
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-bounce), background var(--t-normal);
}
.bento__icon svg { width: 32px; height: 32px; }
.bento__card:hover .bento__icon { transform: rotate(-8deg) scale(1.06); }

.bento__title { color: var(--navy-dark); margin-bottom: 6px; }
.bento__desc  { font-size: 0.95rem; color: var(--gray-600); margin-bottom: var(--space-3); flex-grow: 0; }

.bento__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-3);
}
.bento__features li {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 12px;
  background: var(--cream);
  border-radius: var(--r-pill);
  color: var(--gray-800);
}

.bento__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ember);
  align-self: flex-start;
}
.bento__link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.bento__link:hover { color: var(--ember-dark); }
.bento__link:hover svg { transform: translateX(4px); }

.bento__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: .04em;
}
.bento__badge--popular { background: var(--ember); color: var(--white); }
.bento__badge--new     { background: var(--navy); color: var(--white); }

.bento__visual {
  position: absolute;
  right: -20px; bottom: -20px;
  width: 200px; height: 200px;
  pointer-events: none;
  opacity: .12;
  font-size: 8rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.bento__sparkle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--ember-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--ember);
  animation: spark 2s ease-out infinite;
}
.bento__sparkle:nth-child(2) { top: 30%; right: 30%; animation-delay: .3s; }
.bento__sparkle:nth-child(3) { top: 50%; right: 60%; animation-delay: .8s; }
.bento__sparkle:nth-child(4) { top: 70%; right: 20%; animation-delay: 1.2s; }

/* ============================================================
   7. TIMELINE (Cómo funciona)
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
  counter-reset: step;
  padding: var(--space-5) 0;
}
.timeline__step {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) calc(var(--space-7) + 16px);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  transition: transform var(--t-normal), border-color var(--t-normal), background var(--t-normal);
}
.timeline__step:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,53,.4);
  background: rgba(255,255,255,.07);
}
.timeline__dot {
  position: absolute;
  left: var(--space-5);
  top: var(--space-5);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 20px var(--ember);
}
.timeline__step.is-visible .timeline__dot {
  animation: dotPop .6s var(--t-bounce) forwards;
}
.timeline__num {
  position: absolute;
  top: var(--space-4); right: var(--space-5);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: rgba(255,107,53,.30);
  line-height: 1;
}
.timeline__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(255,107,53,.16);
  color: var(--ember-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.timeline__icon svg { width: 24px; height: 24px; }
.timeline__title { color: var(--white); margin-bottom: 8px; }
.timeline__desc  { color: rgba(255,255,255,.76); font-size: 0.95rem; }

/* ============================================================
   8. PORTAFOLIO
   ============================================================ */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
  padding: 6px;
  background: var(--cream);
  border-radius: var(--r-pill);
  width: fit-content;
  margin-inline: auto;
  overflow-x: auto;
  max-width: 100%;
}
.portfolio__filter {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  color: var(--gray-600);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.portfolio__filter:hover { color: var(--navy); }
.portfolio__filter.is-active {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  grid-auto-flow: dense;
}
.portfolio__item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  transition: transform var(--t-normal), box-shadow var(--t-normal);
  text-align: left;
  width: 100%;
}
.portfolio__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio__item.is-hidden { display: none; }

.portfolio__visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,.6);
  transition: transform var(--t-slow);
}
.portfolio__item:hover .portfolio__visual { transform: scale(1.06); }

.portfolio__visual[data-grad="ember-deep"]  { background: linear-gradient(135deg, var(--ember-dark), var(--navy-dark)); }
.portfolio__visual[data-grad="ember-soft"]  { background: linear-gradient(135deg, #ffaa80, var(--ember-dark)); }
.portfolio__visual[data-grad="ember-cool"]  { background: linear-gradient(135deg, var(--ember), #d63a14); }
.portfolio__visual[data-grad="navy-light"]  { background: linear-gradient(135deg, var(--navy-light), var(--navy)); }
.portfolio__visual[data-grad="navy-deep"]   { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.portfolio__visual[data-grad="warm-night"]  { background: linear-gradient(135deg, #4a3a52, var(--navy-dark)); }
.portfolio__visual[data-grad="sunset"]      { background: linear-gradient(135deg, var(--ember-light), #c0395a, #4a3a52); }
.portfolio__visual[data-grad="dreamy"]      { background: linear-gradient(135deg, #b48bff, #4a3a52, var(--navy)); }

.portfolio__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5);
  background: linear-gradient(180deg, transparent, rgba(15,24,41,.85));
  color: var(--white);
}
.portfolio__caption h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.portfolio__caption span {
  font-size: 0.82rem;
  color: rgba(255,255,255,.78);
  font-family: var(--font-body);
}

.portfolio__item--tall { aspect-ratio: 3 / 4; }
.portfolio__item--wide { aspect-ratio: 16 / 10; }

/* ============================================================
   9. CAROUSEL TESTIMONIOS
   ============================================================ */
.carousel {
  position: relative;
  margin-inline: auto;
  max-width: 100%;
}
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
}
.carousel__track {
  display: flex;
  transition: transform var(--t-slow);
}
.testimonial {
  flex: 0 0 100%;
  min-width: 100%;
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial__rating {
  color: var(--ember);
  font-size: 1.25rem;
  letter-spacing: .15em;
  margin-bottom: var(--space-3);
}
.testimonial__text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--navy-dark);
  margin-bottom: var(--space-5);
  font-style: italic;
  position: relative;
  padding-left: var(--space-4);
  border-left: 3px solid var(--ember);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--ember-dark));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial__name { font-weight: 600; color: var(--navy-dark); }
.testimonial__role { font-size: 0.85rem; color: var(--gray-600); }
.testimonial__type {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ember-dark);
  background: rgba(255,107,53,.10);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.carousel__btn:hover { background: var(--ember); color: var(--white); transform: translateY(-50%) scale(1.08); }
.carousel__btn svg   { width: 22px; height: 22px; }
.carousel__btn--prev { left: -10px; }
.carousel__btn--next { right: -10px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-5);
}
.carousel__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: background var(--t-fast), transform var(--t-fast);
}
.carousel__dot:hover { background: var(--ember-light); }
.carousel__dot.is-active {
  background: var(--ember);
  transform: scale(1.3);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-7);
  flex-wrap: wrap;
}
.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--gray-600);
}
.trust-badges strong { color: var(--navy-dark); }

/* ============================================================
   10. FAQ ACCORDION
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: var(--space-3); }
.faq__item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.faq__item[open] {
  border-color: var(--ember);
  box-shadow: var(--shadow-md);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 1.15rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--ember-dark); }

.faq__icon {
  position: relative;
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--ember);
  border-radius: 1px;
  transition: transform var(--t-normal);
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after  { width: 2px; height: 14px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__item[open] .faq__icon::before { transform: rotate(180deg); }

.faq__a {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--gray-800);
  line-height: 1.65;
}

/* ============================================================
   11. CONTACTO (Form + Info)
   ============================================================ */
.contacto {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.contacto__form {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.form__intro {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: var(--space-5);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.form__req { color: var(--ember); }
.form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 1rem;
  background: var(--white);
  color: var(--navy-dark);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-family: var(--font-body);
}
.form__input:hover { border-color: var(--gray-300); }
.form__input:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 4px rgba(255,107,53,.12);
  outline: none;
}
.form__input::placeholder { color: var(--gray-400); }
.form__input--area { resize: vertical; min-height: 120px; line-height: 1.5; font-family: var(--font-body); }
select.form__input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23616161' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.75rem; }

.form__error {
  display: none;
  font-size: 0.82rem;
  color: var(--error);
  font-weight: 500;
  margin-top: 2px;
}
.form__field.has-error .form__input { border-color: var(--error); }
.form__field.has-error .form__error { display: block; }

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: var(--space-3);
  text-align: center;
}

.contacto__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.info-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-200);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
  color: inherit;
}
a.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--ember);
  box-shadow: var(--shadow-md);
}
.info-card--primary {
  background: linear-gradient(135deg, var(--ember), var(--ember-dark));
  border-color: transparent;
  color: var(--white);
}
.info-card--primary .info-card__title,
.info-card--primary .info-card__value { color: var(--white); }
.info-card--primary .info-card__note  { color: rgba(255,255,255,.85); }
.info-card--primary .info-card__icon  { background: rgba(255,255,255,.18); color: var(--white); }
.info-card--primary:hover { transform: translateY(-3px) scale(1.01); border-color: transparent; }

.info-card--accent .info-card__icon { background: rgba(255,107,53,.16); color: var(--ember); }

.info-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(26,39,68,.08);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-card__icon svg { width: 24px; height: 24px; }
.info-card__body { display: flex; flex-direction: column; gap: 2px; }
.info-card__title { font-size: 0.85rem; font-weight: 600; color: var(--gray-600); margin: 0; font-family: var(--font-body); }
.info-card__value { font-size: 1rem; font-weight: 600; color: var(--navy-dark); margin: 0; font-family: var(--font-body); }
.info-card__note  { font-size: 0.82rem; color: var(--gray-400); margin-top: 4px; }

/* ============================================================
   12. MARQUEE (Social Proof)
   ============================================================ */
.marquee {
  background: var(--gray-100);
  padding: var(--space-5) 0;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  border-block: 1px solid var(--gray-200);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-shrink: 0;
  padding-right: var(--space-6);
  animation: marquee 40s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
}
.marquee__track strong { color: var(--ember-dark); font-weight: 700; }
.marquee__dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50%;
  background: var(--ember) !important;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.78);
  padding: var(--space-9) 0 var(--space-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
.footer__col { display: flex; flex-direction: column; gap: var(--space-3); }

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 8px;
}
.footer__brand em {
  color: var(--ember);
  font-style: normal;
  margin-left: 4px;
}
.footer__about {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,.7);
  max-width: 320px;
}

.footer__title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.footer__links li,
.footer__contact li {
  font-size: 0.92rem;
  line-height: 2;
}
.footer__links a,
.footer__contact a {
  color: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--ember-light); }
.footer__contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
}
.footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer__social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.78);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.footer__social a:hover {
  background: var(--ember);
  color: var(--white);
  transform: translateY(-3px);
}
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
}
.footer__heart {
  color: var(--ember);
  display: inline-block;
  animation: heartbeat 1.6s ease-in-out infinite;
}

/* ============================================================
   14. WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  z-index: var(--z-overlay);
  transition: transform var(--t-fast), opacity var(--t-fast);
  opacity: 0;
  pointer-events: none;
  transform: scale(.6);
}
.wa-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; position: relative; z-index: 2; }

.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: 1;
  animation: pulseRing 2.4s ease-out infinite;
  pointer-events: none;
}

.wa-float__tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(0);
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-md);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  transition: transform var(--t-bounce);
  transform-origin: right center;
}
.wa-float__tooltip::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--navy);
}
.wa-float.show-tooltip .wa-float__tooltip { transform: translateY(-50%) scale(1); }

/* ============================================================
   15. LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox[hidden]  { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,24,41,.75);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.lightbox__content {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform var(--t-normal);
  box-shadow: var(--shadow-xl);
}
.lightbox.is-open .lightbox__content { transform: translateY(0); }

.lightbox__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.lightbox__close:hover { background: var(--navy); color: var(--white); transform: rotate(90deg); }
.lightbox__close svg { width: 22px; height: 22px; }

.lightbox__visual {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255,255,255,.7);
}
.lightbox__visual[data-grad="ember-deep"]  { background: linear-gradient(135deg, var(--ember-dark), var(--navy-dark)); }
.lightbox__visual[data-grad="ember-soft"]  { background: linear-gradient(135deg, #ffaa80, var(--ember-dark)); }
.lightbox__visual[data-grad="ember-cool"]  { background: linear-gradient(135deg, var(--ember), #d63a14); }
.lightbox__visual[data-grad="navy-light"]  { background: linear-gradient(135deg, var(--navy-light), var(--navy)); }
.lightbox__visual[data-grad="navy-deep"]   { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.lightbox__visual[data-grad="warm-night"]  { background: linear-gradient(135deg, #4a3a52, var(--navy-dark)); }
.lightbox__visual[data-grad="sunset"]      { background: linear-gradient(135deg, var(--ember-light), #c0395a, #4a3a52); }
.lightbox__visual[data-grad="dreamy"]      { background: linear-gradient(135deg, #b48bff, #4a3a52, var(--navy)); }

.lightbox__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  overflow-y: auto;
}
.lightbox__title { margin-bottom: 6px; }
.lightbox__meta {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: var(--space-5);
}
.lightbox__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ============================================================
   16. COOKIE BANNER
   ============================================================ */
.cookie {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-overlay);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(120%);
  transition: transform var(--t-bounce);
  max-width: 640px;
  margin-inline: auto;
}
.cookie[hidden] { display: none; }
.cookie.is-visible { transform: translateY(0); }

.cookie__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}
.cookie__text {
  font-size: 0.92rem;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.5;
}
.cookie__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}

/* ============================================================
   17. ANIMATIONS / KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.4); }
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.1); opacity: .8; }
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(2.2); opacity: 0;   }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
@keyframes floatParticle {
  0%   { opacity: 0; transform: translateY(0)    scale(.5); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(.5); }
  50%      { opacity: 1; transform: scale(1.4); }
}
@keyframes scrollDot {
  0%   { transform: translateY(-8px); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(8px);  opacity: 0; }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@keyframes heartbeat {
  0%, 100%   { transform: scale(1); }
  20%, 60%   { transform: scale(1.2); }
  40%, 80%   { transform: scale(1); }
}
@keyframes dotPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
@keyframes kenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.05); }
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes orbitDot {
  0%   { transform: rotate(0deg) translateX(var(--orbit-radius, 45%)) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(var(--orbit-radius, 45%)) rotate(-360deg); }
}
@keyframes shimmerAccent {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   18. RESPONSIVE — Tablet (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .cookie__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie__actions { flex-shrink: 0; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   19. RESPONSIVE — Tablet medium (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }

  .testimonial { padding: var(--space-7); }
  .carousel__btn--prev { left: -22px; }
  .carousel__btn--next { right: -22px; }
}

/* ============================================================
   20. RESPONSIVE — Desktop (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .hero__container { grid-template-columns: 1.1fr .9fr; gap: var(--space-9); }

  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  .bento__card--lg { grid-column: span 2; }

  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    padding-top: var(--space-7);
  }
  .timeline::before {
    content: '';
    position: absolute;
    top: calc(var(--space-7) + 24px);
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,.4) 20%, rgba(255,107,53,.4) 80%, transparent);
    z-index: 0;
  }
  .timeline__step { padding: var(--space-6) var(--space-5); padding-top: calc(var(--space-7) + 16px); }
  .timeline__dot {
    top: calc(var(--space-7) + 18px);
    left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 16px;
    border: 3px solid var(--navy-dark);
  }
  .timeline__num {
    position: relative;
    top: auto; right: auto;
    display: block;
    text-align: center;
    font-size: 3rem;
  }
  .timeline__icon { margin-inline: auto; }
  .timeline__title, .timeline__desc { text-align: center; }

  .portfolio__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }
  .portfolio__item { aspect-ratio: auto; height: 220px; }
  .portfolio__item--tall { grid-row: span 2; height: auto; }
  .portfolio__item--wide { grid-column: span 2; }

  .contacto { grid-template-columns: 1.2fr 1fr; gap: var(--space-7); }

  /* WhatsApp tooltip auto-show on first load */
  .wa-float .wa-float__tooltip { display: inline-flex; }
}

/* ============================================================
   21. RESPONSIVE — Mobile menu (< 1024px)
   ============================================================ */
@media (max-width: 1023.98px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-7);
    padding: var(--space-9) var(--space-5);
    transform: translateX(100%);
    transition: transform var(--t-normal);
    z-index: 100;
  }
  body.menu-open .nav__menu { transform: translateX(0); }
  body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--white); }
  body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--white); }

  .nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 44px; height: 44px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255,255,255,.08);
  }
  .nav__close svg { width: 22px; height: 22px; }

  .nav__list {
    flex-direction: column;
    gap: var(--space-5);
    text-align: center;
  }
  .nav__link {
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    justify-content: center;
  }
  .nav__link:hover { color: var(--ember-light); }
  .nav__link::after { display: none; }

  .nav__cta {
    font-size: 1rem;
    padding: 1rem 2.5rem;
    min-height: 52px;
  }

  .wa-float { bottom: 96px; } /* avoid overlap with mobile keyboard/nav */
}

/* ============================================================
   22. ACCESSIBILITY — Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__particles, .hero__visual-glow, .marquee__track, .hero__colibri, .footer__heart {
    animation: none !important;
  }
}

/* ============================================================
   23. PRINT
   ============================================================ */
@media print {
  .nav, .wa-float, .cookie, .marquee, .hero__scroll { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

