/* =========================================================
   MILA DIGITAL PULSE — Landing Editorial
   Paleta: naranja / lila / papel / tinta
   ========================================================= */

/* ---------- 1. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- 2. Tokens ---------- */
:root {
  /* colores base (paleta del usuario, afinada) */
  --ink:        #0B0B0C;
  --ink-soft:   #1A1A1D;
  --paper:      #FBFAF7;
  --paper-2:    #F3EFE8;
  --fog:        #E6E1D8;
  --mist:       #A09B91;

  --pulse:      #FF9F1C;   /* naranja */
  --pulse-deep: #E67E00;
  --pulse-glow: #FFD79B;

  --bloom:      #F0C2FF;   /* lila */
  --bloom-soft: #F8E0FF;

  /* tipografía */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans:    'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* escala fluida */
  --step--1: clamp(0.80rem, 0.76rem + 0.2vw, 0.88rem);
  --step-0:  clamp(0.95rem, 0.90rem + 0.25vw, 1.05rem);
  --step-1:  clamp(1.10rem, 1.00rem + 0.4vw, 1.25rem);
  --step-2:  clamp(1.35rem, 1.15rem + 0.8vw, 1.65rem);
  --step-3:  clamp(1.80rem, 1.40rem + 1.6vw, 2.40rem);
  --step-4:  clamp(2.40rem, 1.80rem + 2.8vw, 3.75rem);
  --step-5:  clamp(3.00rem, 2.20rem + 4.2vw, 5.50rem);
  --step-6:  clamp(4.00rem, 2.80rem + 6.0vw, 8.50rem);
  --step-7:  clamp(5.00rem, 3.40rem + 8.5vw, 11.0rem);

  /* layout */
  --wrap: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  /* animación */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 3. Base ---------- */
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--pulse); color: var(--ink); }

/* ---------- 4. Utilidades ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section-head {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-5);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
  max-width: 14ch;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--pulse-deep);
}

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease-out-expo),
              background .3s ease, color .3s ease, border-color .3s ease;
  will-change: transform;
}
.btn__arrow { transition: transform .3s var(--ease-out-expo); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--pulse);
  color: var(--ink);
}

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

.btn--dark {
  background: var(--paper);
  color: var(--ink);
}
.btn--dark:hover {
  background: var(--pulse);
}

.btn--full { width: 100%; justify-content: center; }

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled {
  border-bottom-color: color-mix(in srgb, var(--ink) 10%, transparent);
}

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav__brand-mark {
  color: var(--pulse);
  font-size: 1.2em;
  transition: transform .6s var(--ease-out-expo);
}
.nav__brand:hover .nav__brand-mark { transform: rotate(90deg); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__links a {
  padding: 0.55rem 1rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: background .3s ease, color .3s ease;
}
.nav__links a:not(.nav__cta):hover {
  background: var(--paper-2);
}
.nav__cta {
  background: var(--ink);
  color: var(--paper);
}
.nav__cta:hover {
  background: var(--pulse) !important;
  color: var(--ink) !important;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  gap: 3px;
  flex-direction: column;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  padding: 1rem var(--gutter) 2rem;
  border-top: 1px solid var(--fog);
  background: var(--paper);
}
.nav__mobile a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: var(--step-3);
  border-bottom: 1px solid var(--fog);
}
.nav__mobile-cta {
  color: var(--pulse-deep);
  font-style: italic;
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  padding: calc(var(--gutter) + 80px) var(--gutter) clamp(3rem, 6vw, 5rem);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__pulse {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  opacity: 0.35;
  pointer-events: none;
}
.hero__pulse svg {
  width: 100%;
  height: 100%;
  stroke: var(--pulse);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: drawPulse 2.8s 0.4s var(--ease-out-expo) forwards,
             pulseBreath 6s 3.2s ease-in-out infinite;
}
@keyframes drawPulse {
  to { stroke-dashoffset: 0; }
}
@keyframes pulseBreath {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

.hero__inner {
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--bloom-soft);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pulse);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--step-7);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__title-line {
  display: block;
}
.hero__title-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--pulse-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  padding-left: clamp(2rem, 8vw, 6rem);
}
.hero__title-accent em {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--ink);
  font-style: normal;
  font-weight: 400;
  margin-left: 0.1em;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: var(--step-2);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.015em;
  max-width: 40ch;
  color: var(--ink-soft);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__footnote {
  max-width: 46ch;
  font-size: var(--step--1);
  color: var(--mist);
  line-height: 1.5;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fog);
}
.hero__footnote em {
  font-style: normal;
  color: var(--pulse-deep);
  font-weight: 500;
  margin-right: 0.2em;
}

.hero__marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--fog);
  overflow: hidden;
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
}
.hero__marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.hero__marquee-track span {
  display: inline-block;
}
.hero__marquee-track span:nth-child(even) {
  color: var(--pulse);
  font-style: normal;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 8. ABOUT ---------- */
.about {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--paper);
}
.about__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.about__label { padding-top: 1rem; }
.about__title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}
.about__title em {
  font-style: italic;
  color: var(--pulse-deep);
  font-weight: 300;
}
.about__body {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.about__body p + p { margin-top: 1.2em; }
.about__body em {
  font-style: italic;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  padding-top: 2rem;
  border-top: 1px solid var(--fog);
}
.about__stats dt {
  font-size: var(--step--1);
  color: var(--mist);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.about__stats dd {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- 9. SERVICIOS ---------- */
.services {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: var(--ink);
  color: var(--paper);
}
.services .eyebrow { color: var(--paper-2); }
.services .section-title { color: var(--paper); }
.services .section-title em { color: var(--pulse); }

.services__list {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-top: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
}

.service {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: baseline;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
  transition: background .4s ease, padding-left .4s var(--ease-out-expo);
  position: relative;
  text-decoration: none;
  color: inherit;
}
.services__list li { list-style: none; border-bottom: 1px solid color-mix(in srgb, var(--paper) 15%, transparent); }
.services__list li:last-child { border-bottom: none; }
.services__list li:last-child .service { border-bottom: none; }
.services__list > li > .service { border-bottom: none; }
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background: var(--pulse);
  transition: width .5s var(--ease-out-expo);
  z-index: 0;
}
.service:hover::before { width: 4px; }
.service:hover { padding-left: 1.5rem; }
.service:hover .service__title { color: var(--pulse); }
.service:hover .service__arrow { transform: translateX(4px); color: var(--pulse); }
.service:focus-visible { outline: 2px solid var(--pulse); outline-offset: 4px; border-radius: 4px; }

.service__arrow {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 300;
  color: color-mix(in srgb, var(--paper) 40%, var(--ink));
  transition: transform .4s var(--ease-out-expo), color .3s ease;
  align-self: center;
}

.service__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-2);
  color: var(--mist);
  letter-spacing: -0.02em;
  min-width: 3ch;
}
.service__body { position: relative; z-index: 1; }
.service__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  transition: color .3s ease;
}
.service__desc {
  font-size: var(--step-0);
  line-height: 1.55;
  color: color-mix(in srgb, var(--paper) 75%, var(--ink));
  max-width: 60ch;
}
.service__tag {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--pulse);
  border-radius: 999px;
  color: var(--pulse);
  white-space: nowrap;
  align-self: center;
}

/* ---------- 10. PARTNER TN ---------- */
.partner {
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  background: var(--bloom);
  position: relative;
  overflow: hidden;
}
.partner__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.partner__eyebrow { color: var(--ink); }

.partner__title {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 2rem;
  max-width: 16ch;
}
.partner__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--pulse-deep);
}

.partner__body {
  font-family: var(--font-sans);
  font-size: var(--step-2);
  line-height: 1.35;
  max-width: 42ch;
  margin-bottom: 2.5rem;
  color: var(--ink-soft);
}
.partner__body strong {
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  padding: 0 0.3em;
  border-radius: 4px;
}

.partner__deco {
  position: absolute;
  right: calc(var(--gutter) * -1);
  bottom: -2rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(10rem, 28vw, 28rem);
  line-height: 0.8;
  color: color-mix(in srgb, var(--ink) 8%, transparent);
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.partner__deco span:last-child { margin-top: -0.2em; }

/* ---------- 11. PROYECTOS ---------- */
.projects {
  padding: clamp(4rem, 10vw, 8rem) 0;
}
.projects__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.project--lg {
  grid-column: 1 / -1;
}

.project {
  display: block;
  cursor: pointer;
  transition: transform .5s var(--ease-out-expo);
}
.project:hover { transform: translateY(-4px); }
.project:hover .project__img { transform: scale(1.02); }
.project:hover .project__placeholder { letter-spacing: 0.05em; }
.project:hover .project__link { gap: 0.8rem; }

.project__img {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin: 0 0 1.25rem;
  transition: transform .8s var(--ease-out-expo);
  background: var(--paper-2);
}
.project--lg .project__img {
  aspect-ratio: 21 / 10;
}
.project__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform .8s var(--ease-out-expo);
}
.project:hover .project__img img { transform: scale(1.04); }

/* Placeholder oculto por defecto; solo visible si la img falla */
.project__placeholder {
  position: absolute;
  inset: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-align: center;
  background: #2d4a3e;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
  transition: letter-spacing .6s var(--ease-out-expo);
}
.project:nth-of-type(2) .project__placeholder { background: #c9a88f; }
.project:nth-of-type(3) .project__placeholder { background: #1a1a1a; color: var(--pulse); }
.project__img--fallback .project__placeholder { display: flex; }
.project:hover .project__placeholder { letter-spacing: 0.05em; }
.project__placeholder span:last-child {
  font-style: italic;
  font-weight: 300;
  opacity: 0.7;
}

.project__meta { display: block; }
.project__tag {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.5rem;
}
.project__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.project__desc {
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  max-width: 50ch;
}
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-0);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap .3s var(--ease-out-expo);
}

/* ---------- 12. PROCESO ---------- */
.process {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--paper-2);
}
.process__list {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pulse-deep);
  margin-bottom: 1.5rem;
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}
.step__desc {
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- 13. TESTIMONIOS ---------- */
.testimonials {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.testimonials__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.testimonial {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--paper-2);
  border-radius: 8px;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 1;
  color: var(--pulse);
  font-weight: 300;
  font-style: italic;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}
.testimonial__cite {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-style: normal;
}
.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-1);
}
.testimonial__cite strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-0);
}
.testimonial__cite span {
  font-size: var(--step--1);
  color: var(--mist);
}

/* ---------- 14. FAQ ---------- */
.faq {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--paper);
}
.faq__list {
  max-width: 860px;
  margin: 0 auto;
}
.faq__item {
  border-top: 1px solid var(--fog);
  padding: 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--fog); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  transition: color .3s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--pulse-deep); }
.faq__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: relative;
  transition: background .3s ease, border-color .3s ease, transform .4s var(--ease-out-expo);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: transform .3s var(--ease-out-expo);
}
.faq__icon::before {
  width: 10px; height: 1.2px;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  width: 1.2px; height: 10px;
  transform: translate(-50%, -50%);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--pulse); border-color: var(--pulse); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: var(--ink); }

.faq__item p {
  padding: 0 0 1.75rem;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 65ch;
  animation: faqOpen .4s var(--ease-out-expo);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 15. CONTACTO ---------- */
.contact {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}
.contact__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}
.contact .eyebrow { color: var(--paper-2); }
.contact__title {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1.5rem;
}
.contact__title em {
  font-style: normal;
  color: var(--pulse);
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 400;
  margin-left: 0.1em;
}
.contact__sub {
  font-size: var(--step-1);
  line-height: 1.5;
  color: color-mix(in srgb, var(--paper) 75%, var(--ink));
  max-width: 40ch;
  margin-bottom: 3rem;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.contact__channels li {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact__channel-label {
  font-size: var(--step--1);
  color: var(--mist);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact__channels a {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  transition: color .3s ease;
}
.contact__channels a:hover { color: var(--pulse); }

.contact__footnote {
  font-size: var(--step--1);
  color: var(--mist);
  line-height: 1.5;
}
.contact__footnote em {
  font-style: normal;
  color: var(--pulse);
  margin-right: 0.2em;
  font-weight: 500;
}

/* form */
.contact__form {
  background: color-mix(in srgb, var(--paper) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 12px;
  align-self: start;
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: color-mix(in srgb, var(--paper) 80%, var(--ink));
}
.field__optional { color: var(--mist); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
  padding: 0.65rem 0;
  font-size: var(--step-0);
  color: var(--paper);
  font-family: var(--font-sans);
  transition: border-color .3s ease;
  resize: vertical;
}
.field textarea { min-height: 100px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--pulse);
}

.form__status {
  margin-top: 1rem;
  font-size: var(--step--1);
  min-height: 1.2em;
}
.form__status.is-ok { color: var(--pulse); }
.form__status.is-error { color: #ff6b6b; }

/* ---------- 16. FOOTER ---------- */
.footer {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  border-top: 1px solid var(--fog);
}
.footer__top {
  max-width: var(--wrap);
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a {
  font-size: var(--step-0);
  color: var(--ink-soft);
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--pulse-deep); }
.footer__heading {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  margin-bottom: 1rem;
}
.footer__mark { color: var(--pulse); }
.footer__tag {
  font-size: var(--step--1);
  color: var(--mist);
  line-height: 1.6;
  max-width: 30ch;
}

.footer__bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--fog);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: var(--step--1);
  color: var(--mist);
}
.footer__partner {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 17. FLOATING WHATSAPP ---------- */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 0 rgba(37,211,102,0.4);
  transition: transform .3s var(--ease-out-expo), box-shadow .3s ease;
  animation: waPulse 2.5s ease-out infinite;
}
.float-wa svg {
  width: 28px; height: 28px;
}
.float-wa:hover {
  transform: scale(1.08);
  animation: none;
  box-shadow: 0 12px 32px rgba(37,211,102,0.4);
}
@keyframes waPulse {
  0% { box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- 18. REVEAL ANIMATIONS ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-menu-open .nav__mobile { display: block; }

  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__label { padding-top: 0; }
  .about__stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  .process__list { grid-template-columns: repeat(2, 1fr); }

  .projects__grid { grid-template-columns: 1fr; }
  .project--lg { grid-column: auto; }

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

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

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; padding-top: calc(var(--gutter) + 90px); padding-bottom: 6rem; }
  .hero__title-accent { padding-left: 0; }
  .hero__marquee { position: static; margin-top: 3rem; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }

  .service {
    grid-template-columns: auto 1fr auto;
  }
  .service__tag {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.5rem;
  }
  .service__arrow { display: none; }

  .about__stats { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; gap: 2rem; }

  .float-wa { bottom: 1rem; right: 1rem; width: 52px; height: 52px; }
  .float-wa svg { width: 24px; height: 24px; }

  .partner__deco { font-size: clamp(8rem, 40vw, 14rem); }
}

/* ---------- 20. A11Y + MOTION ---------- */
.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step-0);
  font-weight: 500;
  border-radius: 0 0 6px 0;
  transition: top .2s var(--ease-out-expo);
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--pulse);
  outline-offset: 2px;
}

/* Honeypot: oculto visual y de lectores (pero enviado en form) */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 3px;
  border-radius: 4px;
}

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__marquee-track { animation: none; }
  .float-wa { animation: none; }
}

/* =========================================================
   21. SUBPÁGINAS DE SERVICIO
   ========================================================= */

/* Breadcrumb */
.breadcrumb {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: calc(var(--gutter) + 80px) var(--gutter) 0;
  font-size: var(--step--1);
  color: var(--mist);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--mist);
  opacity: 0.5;
}
.breadcrumb a { color: var(--ink-soft); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--pulse-deep); }
.breadcrumb [aria-current] { color: var(--ink); }

/* Service Hero */
.service-hero {
  padding: clamp(2rem, 4vw, 3rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}
.service-hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.service-hero__body { max-width: 48ch; }
.service-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pulse-deep);
  margin-bottom: 1.5rem;
}
.service-hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-6);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.service-hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--pulse-deep);
}
.service-hero__lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 46ch;
}
.service-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.service-hero__side {
  border-left: 1px solid var(--fog);
  padding-left: clamp(1rem, 3vw, 2.5rem);
}
.service-hero__side dt {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}
.service-hero__side dt:first-of-type { margin-top: 0; }
.service-hero__side dd {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Sections genéricas */
.service-section {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
.service-section--dark { background: var(--ink); color: var(--paper); }
.service-section--dark .eyebrow { color: var(--paper-2); }
.service-section--soft { background: var(--paper-2); }
.service-section--bloom { background: var(--bloom); }
.service-section__head {
  max-width: var(--wrap);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.service-section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-top: 0.5rem;
  max-width: 20ch;
}
.service-section__title em { font-style: italic; color: var(--pulse-deep); font-weight: 300; }
.service-section--dark .service-section__title em { color: var(--pulse); }

/* Grid de "Qué incluye" */
.includes-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.include-item {
  padding: 1.5rem 0;
  border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}
.include-item__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-2);
  color: var(--pulse);
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1;
}
.include-item__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.include-item__desc {
  font-size: var(--step-0);
  line-height: 1.55;
  color: color-mix(in srgb, currentColor 70%, transparent);
}

/* Service lead prose */
.service-prose {
  max-width: 60ch;
  margin: 0 auto;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
}
.service-prose p + p { margin-top: 1.2em; }
.service-prose em { font-style: italic; color: var(--ink); font-family: var(--font-display); font-weight: 400; }
.service-prose strong { font-weight: 600; }

/* CTA block */
.service-cta {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.service-cta__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-5);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.service-cta__title em { font-style: italic; color: var(--pulse); font-weight: 300; }
.service-cta__sub {
  font-size: var(--step-1);
  color: color-mix(in srgb, var(--paper) 75%, var(--ink));
  max-width: 48ch;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* Cross services */
.cross {
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  background: var(--paper);
}
.cross__head {
  max-width: var(--wrap);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.cross__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cross__item {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--fog);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease-out-expo);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cross__item:hover {
  border-color: var(--ink);
  background: var(--paper-2);
  transform: translateY(-2px);
}
.cross__item-name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.cross__item-arrow {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-2);
  color: var(--mist);
  transition: transform .3s var(--ease-out-expo), color .3s ease;
}
.cross__item:hover .cross__item-arrow {
  transform: translateX(3px);
  color: var(--pulse-deep);
}

@media (max-width: 900px) {
  .service-hero__inner { grid-template-columns: 1fr; }
  .service-hero__side { border-left: none; border-top: 1px solid var(--fog); padding-left: 0; padding-top: 2rem; }
}

/* =========================================================
   22. 404
   ========================================================= */
.page-404 {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--gutter) + 120px) var(--gutter) clamp(4rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--paper);
}
.page-404__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--pulse-deep);
  margin-bottom: 1.5rem;
}
.page-404__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}
.page-404__title em { font-style: italic; color: var(--pulse-deep); }
.page-404__sub {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.page-404__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
