@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  /* Smooth solo en anclas intencionales (no en focus automático al cargar) */
  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: auto;
    }

    html.allow-smooth-scroll {
      scroll-behavior: smooth;
    }
  }

  body {
    margin: 0;
  }

  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }

  input, button, textarea, select {
    font: inherit;
  }

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

@layer base {
  :root {
    /* Paleta Ozdevy */
    --color-navy: #03112f;
    --color-gold: #f5b300;
    --color-white: #ffffff;
    --color-lilac: #c4b5e8;
    --color-lilac-deep: #8b74c7;

    --bg: var(--color-navy);
    --fg: var(--color-white);
    --accent: var(--color-gold);
    --muted: rgba(255, 255, 255, 0.72);
    --muted-2: rgba(255, 255, 255, 0.54);
    --stroke: rgba(255, 255, 255, 0.16);
    --shadow: rgba(0, 0, 0, 0.45);
    --radius: 18px;

    /* Fondo de página (se anima al scrollear) */
    --page-bg: var(--color-navy);
    --page-fg: var(--color-white);
    --page-muted: rgba(255, 255, 255, 0.72);
    --page-card: rgba(255, 255, 255, 0.05);
    --page-stroke: rgba(255, 255, 255, 0.16);
    --page-accent: var(--color-gold);
  }

  body {
    font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background-color: var(--page-bg);
    color: var(--page-fg);
    line-height: 1.5;
    overflow-x: hidden;
    transition:
      background-color 1.05s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.65s ease;
  }

  body.theme-animating {
    transition:
      background-color 1.15s cubic-bezier(0.16, 1, 0.3, 1),
      color 0.7s ease;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
  }

  /* Glow sutil según el tema activo (solo home) */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    transition: background 1.05s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
    background:
      radial-gradient(1000px 520px at 12% -8%, color-mix(in srgb, var(--page-accent) 28%, transparent), transparent 60%),
      radial-gradient(800px 480px at 90% 20%, color-mix(in srgb, var(--page-fg) 8%, transparent), transparent 55%);
  }

  /* Páginas internas: sin brillo / wash dorado */
  body.is-subpage::after {
    opacity: 0;
    background: none;
  }

  body.is-subpage main > section[data-theme]::before {
    display: none;
  }

  body.is-subpage .svc.is-active,
  body.is-subpage .svc:hover {
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.14);
  }

  body.is-subpage .svc-wash {
    background: linear-gradient(
      180deg,
      rgba(3, 17, 47, 0.22) 0%,
      rgba(3, 17, 47, 0.32) 35%,
      rgba(3, 17, 47, 0.94) 100%
    );
  }

  body.is-subpage .svc.is-active .svc-frame,
  body.is-subpage .svc:hover .svc-frame {
    border-color: rgba(255, 255, 255, 0.28);
  }

  body.is-subpage .svc-icon {
    background: rgba(255, 255, 255, 0.92);
    color: #03112f;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  }

  body.is-subpage .svc-link {
    color: rgba(255, 255, 255, 0.92);
  }

  body.is-subpage .svc-link-arrow {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
  }

  body.is-subpage .case-item:hover,
  body.is-subpage .case-item:focus-within {
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
  }

  @media (prefers-reduced-motion: reduce) {
    .folio-card,
    .folio-media img,
    .folio-index,
    .folio-go-arrow {
      transition: none !important;
    }

    .folio-card:hover,
    .folio-card:focus-visible,
    .folio-card--mid:hover,
    .folio-card--mid:focus-visible,
    .folio-card--tail:hover,
    .folio-card--tail:focus-visible {
      transform: none !important;
    }
  }

  body.is-subpage .services-progress-fill {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.85));
  }

  body.is-subpage .services-nav-btn:hover,
  body.is-subpage .services-nav-btn:focus-visible {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  body.is-subpage .svc.is-active .svc-index,
  body.is-subpage .svc:hover .svc-index {
    color: rgba(255, 255, 255, 0.1);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
  }

  body.is-subpage .svc-tag {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
  }

  body.is-subpage .svc--social .svc-tag {
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.88);
  }

  main, header, footer {
    position: relative;
    z-index: 2;
  }

  /* Secciones a pantalla completa + fondo animado */
  main > section,
  .site-footer {
    --section-bg: transparent;
    --section-fg: var(--page-fg);
    --section-muted: var(--page-muted);
    --section-card: var(--page-card);
    --section-stroke: var(--page-stroke);
    --section-accent: var(--page-accent);
    background-color: var(--section-bg);
    color: var(--section-fg);
    transition:
      background-color 1.05s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.65s ease,
      box-shadow 0.8s ease;
  }

  /* Home: altura al contenido (solo el hero es full-viewport) */
  main > section[data-theme] {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: clip;
    padding-block: clamp(2.75rem, 6vh, 4.5rem);
    box-sizing: border-box;
  }

  main > section.cases[data-theme] {
    min-height: 0;
    overflow: visible;
    justify-content: flex-start;
    padding-block: clamp(2.5rem, 5vh, 4rem);
  }

  /* ——— Internas: sin full-viewport ni huecos enormes ——— */
  body.is-subpage main > section[data-theme] {
    min-height: 0;
    justify-content: flex-start;
    overflow: visible;
    padding-block: clamp(1.1rem, 3.2vw, 1.85rem);
  }

  body.is-subpage .subpage-hero,
  body.is-subpage main > section.subpage-hero[data-theme] {
    padding-top: clamp(4.4rem, 11vw, 5.4rem);
    padding-bottom: clamp(0.85rem, 2.4vw, 1.35rem);
    min-height: 0;
  }

  body.is-subpage .subpage-hero--compact .hero-title,
  body.is-subpage .project-title {
    font-size: clamp(1.7rem, 5.5vw, 2.55rem);
    line-height: 1.08;
    margin: 0;
  }

  body.is-subpage .section-subtitle {
    margin-top: 0.35rem;
  }

  body.is-subpage .subpage-block {
    padding-block: clamp(0.75rem, 2.5vw, 1.35rem);
  }

  body.is-subpage main > section.services--subpage[data-theme],
  body.is-subpage main > section.services[data-theme] {
    min-height: 0;
    padding-block: clamp(0.5rem, 2vw, 1rem);
  }

  body.is-subpage main > section.service-cta-band[data-theme] {
    padding-block: clamp(1rem, 3vw, 1.5rem);
    min-height: 0;
  }

  .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 0.35rem;
  }

  .breadcrumbs a {
    color: rgba(255, 255, 255, 0.78);
  }

  .breadcrumbs a:hover {
    color: #f5b300;
  }

  .breadcrumb-sep {
    opacity: 0.45;
  }

  /* Proyecto detalle: layout denso */
  .project-hero-inner {
    display: grid;
    gap: 0.75rem;
  }

  .project-kicker {
    margin: 0.35rem 0 0;
  }

  .project-hero-row {
    display: grid;
    gap: 1rem;
    align-items: start;
  }

  .project-hero-copy {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
  }

  .project-metric {
    margin: 0;
    font-weight: 800;
    color: #f5b300;
    font-size: 0.95rem;
  }

  .project-summary {
    margin: 0;
    max-width: 38rem;
  }

  .project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.25rem;
  }

  .project-shot {
    margin: 0;
    min-width: 0;
  }

  .project-shot-frame {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    aspect-ratio: 16 / 10;
  }

  .project-shot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  .project-shot-cap {
    margin-top: 0.45rem;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
  }

  .project-shot-cap a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .project-detail {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .project-detail-inner {
    padding-block: 0.25rem;
    max-width: 46rem;
  }

  .project-detail-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .project-detail-body {
    margin: 0;
  }

  .project-detail-body p {
    margin: 0 0 0.65rem;
  }

  /* Ficha de proyecto (caso de estudio) */
  body.is-subpage main > section.project-case-hero[data-theme] {
    padding-top: clamp(4.6rem, 11vw, 5.8rem);
    padding-bottom: clamp(1.1rem, 3vw, 1.8rem);
  }

  body.is-subpage main > section.project-case-stage[data-theme],
  body.is-subpage main > section.project-case-body[data-theme],
  body.is-subpage main > section.project-case-more[data-theme] {
    padding-block: clamp(0.85rem, 2.4vw, 1.6rem);
  }

  .project-case-hero-inner {
    display: grid;
    gap: 0.85rem;
  }

  .project-case-intro {
    display: grid;
    gap: 1.25rem;
    align-items: start;
  }

  .project-case-copy {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
  }

  .project-case-kicker {
    margin: 0;
  }

  .project-case-title {
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(3.4rem, 12vw, 7.5rem);
    line-height: 0.88;
    letter-spacing: 0.02em;
    margin: 0;
    max-width: 18ch;
    color: #fff;
  }

  .project-case-lead {
    margin: 0;
    max-width: 42rem;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
  }

  .project-case-facts {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    align-content: start;
  }

  .project-fact {
    display: grid;
    gap: 0.2rem;
  }

  .project-fact-label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
  }

  .project-fact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
  }

  .project-fact-link {
    color: #f5b300;
    text-decoration: none;
    word-break: break-all;
  }

  .project-fact-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .project-browser {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  }

  .project-browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .project-browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }

  .project-browser-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    display: block;
  }

  .project-browser-dots i:nth-child(1) { background: #ff5f57; }
  .project-browser-dots i:nth-child(2) { background: #febc2e; }
  .project-browser-dots i:nth-child(3) { background: #28c840; }

  .project-browser-url {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .project-browser-url:hover {
    color: #f5b300;
  }

  .project-browser-frame {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #010817;
  }

  .project-browser-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 640ms ease;
  }

  .project-browser-frame:hover img {
    transform: scale(1.03);
  }

  .project-case-body-inner {
    display: grid;
    gap: 1.25rem;
  }

  .project-case-h {
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.03em;
    line-height: 0.95;
    margin: 0.15rem 0 0.7rem;
  }

  .project-case-prose {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 58ch;
  }

  .project-case-prose p {
    margin: 0 0 0.85rem;
  }

  .project-case-prose p:last-child {
    margin-bottom: 0;
  }

  .project-case-aside {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(245, 179, 0, 0.1), rgba(255, 255, 255, 0.03));
  }

  .project-case-aside-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f5b300;
  }

  .project-case-aside-copy {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
  }

  .project-case-more-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1rem;
  }

  .project-case-more-head .project-case-h {
    margin: 0;
    flex: 1 1 auto;
  }

  .project-case-more-all {
    font-weight: 700;
    color: #f5b300;
    margin-left: auto;
  }

  .project-case-more-grid {
    display: grid;
    gap: 14px;
  }

  .project-mini {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    color: inherit;
  }

  .project-mini-media {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
  }

  .project-mini-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 480ms ease;
  }

  .project-mini:hover .project-mini-media img {
    transform: scale(1.06);
  }

  .project-mini-tag {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
  }

  .project-mini-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .project-mini:hover .project-mini-title {
    color: #f5b300;
  }

  @media (min-width: 900px) {
    .project-case-intro {
      grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
      gap: 2rem;
      align-items: end;
    }

    .project-case-body-inner {
      grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
      gap: 2.25rem;
      align-items: start;
    }

    .project-case-more-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }
  }

  .service-detail-grid {
    display: grid;
    gap: 1.1rem;
  }

  .service-detail-h {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
  }

  .service-includes {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
  }

  .service-includes li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
  }

  .service-includes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f5b300;
  }

  .service-detail-side {
    display: grid;
    gap: 0.75rem;
  }

  .service-chip-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.9rem 1rem;
  }

  .service-chip-card p:last-child {
    margin: 0.4rem 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
  }

  .service-detail-img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .service-related-head {
    display: grid;
    gap: 8px;
    margin-bottom: 1.25rem;
    max-width: 46ch;
  }

  .service-related-grid {
    display: grid;
    gap: 14px;
  }

  .related-project {
    display: grid;
    grid-template-rows: 180px auto;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    isolation: isolate;
    position: relative;
    transition: transform 280ms ease, border-color 240ms ease, box-shadow 280ms ease;
  }

  .related-project::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    z-index: 2;
    background: linear-gradient(180deg, var(--color-lilac), var(--color-lilac-deep));
    pointer-events: none;
  }

  .related-project:hover,
  .related-project:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--color-lilac) 50%, rgba(255, 255, 255, 0.2));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
    outline: none;
  }

  .related-project-media {
    position: relative;
    overflow: hidden;
    background: #06142f;
  }

  .related-project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.04);
    transition: transform 500ms ease;
  }

  .related-project:hover .related-project-media img,
  .related-project:focus-visible .related-project-media img {
    transform: scale(1.08);
  }

  .related-project-body {
    display: grid;
    gap: 8px;
    padding: 14px 16px 16px;
    align-content: start;
  }

  .related-project-tag {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-lilac);
  }

  .related-project-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
  }

  .related-project-copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
  }

  .related-project-go {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
  }

  @media (min-width: 700px) {
    .service-related-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }

    .related-project {
      grid-template-rows: 200px auto;
    }
  }

  @media (min-width: 1024px) {
    .service-related-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  body.is-service-social .subpage-hero {
    box-shadow: inset 0 -3px 0 var(--color-lilac);
  }

  body.is-service-social .service-related {
    background-image: repeating-linear-gradient(
      -52deg,
      transparent 0 12px,
      color-mix(in srgb, var(--color-lilac) 14%, transparent) 12px 13px
    );
  }

  @media (min-width: 900px) {
    .project-hero-row {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
      gap: 1.5rem;
      align-items: center;
    }

    .service-detail-grid {
      grid-template-columns: 1.1fr 0.9fr;
      gap: 1.5rem;
      align-items: start;
    }

    body.is-subpage main > section[data-theme] {
      padding-block: clamp(1.25rem, 2.5vw, 2rem);
    }
  }

  @media (max-width: 767px) {
    body.is-subpage main > section[data-theme] {
      padding-block: 0.85rem 1rem;
    }

    body.is-subpage .subpage-hero,
    body.is-subpage main > section.subpage-hero[data-theme],
    body.is-subpage main > section.project-case-hero[data-theme] {
      padding-top: 4.1rem;
      padding-bottom: 0.65rem;
    }

    body.is-subpage .cases-grid,
    body.is-subpage .work-grid {
      gap: 12px;
    }

    body.is-subpage .case-body {
      padding: 12px 12px 14px;
    }

    .project-actions .btn {
      flex: 1 1 auto;
      min-height: 44px;
    }
  }

  /* Hero + marquee = un solo viewport; la imagen cubre los 100vh */
  main > section.hero[data-theme] {
    min-height: 100svh;
    min-height: 100dvh;
    height: 100svh;
    height: 100dvh;
    padding-block: 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    overflow: hidden;
  }

  /* Gana a "main > section > *" (relative) para que el fondo cubra todo el alto */
  main > section.hero[data-theme] > .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  main > section.hero[data-theme] > .hero-ui {
    position: relative;
    z-index: 3;
  }

  /* Wash de color al entrar en viewport (efecto más visible) */
  main > section[data-theme]::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background:
      radial-gradient(900px 480px at 50% 0%, color-mix(in srgb, var(--section-accent) 22%, transparent), transparent 65%),
      linear-gradient(180deg, color-mix(in srgb, var(--section-fg) 6%, transparent), transparent 40%);
    transition: opacity 0.9s ease;
  }

  main > section[data-theme].is-inview::before {
    opacity: 1;
  }

  /* El hero ya trae sus propios fondos full-bleed */
  main > section.hero[data-theme]::before {
    display: none;
  }

  main > section[data-theme] > * {
    position: relative;
    z-index: 1;
  }

  .section-inner {
    width: 100%;
  }

  main > section[data-theme="navy"],
  .site-footer[data-theme="navy"] {
    --section-bg: var(--color-navy);
    --section-fg: var(--color-white);
    --section-muted: rgba(255, 255, 255, 0.72);
    --section-card: rgba(255, 255, 255, 0.05);
    --section-stroke: rgba(255, 255, 255, 0.16);
    --section-accent: var(--color-gold);
  }

  main > section[data-theme="gold"],
  .site-footer[data-theme="gold"] {
    --section-bg: var(--color-gold);
    --section-fg: var(--color-navy);
    --section-muted: rgba(3, 17, 47, 0.72);
    --section-card: rgba(3, 17, 47, 0.08);
    --section-stroke: rgba(3, 17, 47, 0.16);
    --section-accent: var(--color-navy);
  }

  main > section[data-theme="white"],
  .site-footer[data-theme="white"] {
    --section-bg: var(--color-white);
    --section-fg: var(--color-navy);
    --section-muted: rgba(3, 17, 47, 0.68);
    --section-card: rgba(3, 17, 47, 0.04);
    --section-stroke: rgba(3, 17, 47, 0.12);
    --section-accent: var(--color-gold);
  }

  @media (prefers-reduced-motion: reduce) {
    body,
    main > section,
    .site-footer,
    body::after,
    main > section[data-theme]::before {
      transition: none !important;
    }
  }
}

@layer components {
  .skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--fg);
    color: var(--bg);
    transform: translateY(-140%);
    transition: transform 180ms ease;
    z-index: 80;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .skip-link:focus {
    transform: translateY(0);
  }

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

  /* ——— Nav Overlay Editorial ——— */
  /* Fijo sobre el hero: no empuja el layout, fondo 100% transparente */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 210;
    padding-top: env(safe-area-inset-top, 0px);
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header.is-compact {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html.nav-open .site-header {
    background: transparent;
  }

  html.nav-open .nav-menu-btn-plus {
    transform: rotate(45deg);
  }

  .nav-shell {
    width: min(1200px, calc(100% - 28px));
    margin-inline: auto;
    padding: 12px 0;
  }

  .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
  }

  /* Logo: fondo blanco + recorte poligonal (mantener) */
  .nav-brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-width: 0;
    max-width: min(56vw, 202px);
    height: 53px;
    padding: 0 22px 0 16px;
    background: #ffffff;
    clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    transition: height 180ms ease, max-width 180ms ease, transform 180ms ease;
  }

  .nav-brand:hover {
    transform: translateY(-1px);
  }

  .brand-logo {
    display: block;
    height: 31px;
    width: auto;
    max-width: 154px;
    object-fit: contain;
    object-position: left center;
  }

  .site-header.is-compact .nav-brand {
    height: 48px;
    max-width: min(52vw, 182px);
    padding: 0 20px 0 14px;
  }

  .site-header.is-compact .brand-logo {
    height: 29px;
    max-width: 142px;
  }

  /* ——— Fullscreen overlay ——— */
  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background:
      radial-gradient(900px 520px at 88% 12%, rgba(245, 179, 0, 0.1), transparent 55%),
      radial-gradient(700px 480px at 8% 90%, rgba(255, 255, 255, 0.04), transparent 50%),
      #020b1f;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1), visibility 380ms ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-ed {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: 1fr;
    /* Espacio bajo el header sticky (logo + botón) */
    padding:
      calc(var(--site-header-h, 72px) + 8px)
      max(16px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  /* Logo y cierre viven en el header; no duplicar arriba del overlay */
  .nav-ed-top {
    display: none;
  }

  .nav-brand--overlay {
    max-width: min(54vw, 202px);
  }

  .nav-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px 10px 10px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 160ms ease;
  }

  .nav-close-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition:
      background 160ms ease,
      border-color 160ms ease,
      transform 200ms ease,
      opacity 160ms ease;
  }

  .nav-close-btn:hover,
  .nav-close-btn:focus-visible {
    color: #ffffff;
    opacity: 0.88;
    outline: none;
  }

  .nav-close-btn:hover .nav-close-x,
  .nav-close-btn:focus-visible .nav-close-x {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: rotate(90deg);
  }

  .nav-ed-body {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
    padding-top: 8px;
  }

  .nav-ed-primary,
  .nav-ed-sub {
    min-height: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Nunca mostrar scrollbar (el stagger no debe “parpadear” la barra) */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-ed-primary::-webkit-scrollbar,
  .nav-ed-sub::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .nav-ed-sub {
    grid-template-rows: auto auto 1fr;
    align-content: start;
  }

  .nav-ed-primary[hidden],
  .nav-ed-sub[hidden] {
    display: none !important;
  }

  /* Level swap: main hides when sub open */
  .nav-overlay.is-sub .nav-ed-primary {
    display: none !important;
  }

  .nav-ed-links {
    display: grid;
    align-content: start;
    gap: 2px;
    padding: 8px 0 20px;
    overflow: hidden; /* recorta el translateY del stagger */
  }

  .nav-ed-link {
    position: relative;
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: baseline;
    width: 100%;
    max-width: 38rem;
    padding: 10px 8px 11px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
      padding-left 220ms ease;
    transition-delay: 0ms;
  }

  .nav-overlay.is-open:not(.is-sub) .nav-ed-primary .nav-ed-link,
  .nav-overlay.is-open.is-sub .nav-ed-sub .nav-ed-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(90ms + (var(--nav-i, 0) * 70ms));
  }

  .nav-ed-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
  }

  .nav-ed-label-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28em;
    min-width: 0;
    font-size: clamp(1.35rem, 5.2vw, 2.15rem);
    line-height: 0.95;
  }

  .nav-ed-label {
    font-size: clamp(1.35rem, 5.2vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: #ffffff;
  }

  .nav-ed-label-wrap .nav-ed-label {
    font-size: 1em;
  }

  /* Mismo tamaño en todas las opciones principales */
  .nav-ed-primary .nav-ed-label,
  .nav-ed-primary .nav-ed-link--all .nav-ed-label {
    font-size: clamp(1.35rem, 5.2vw, 2.15rem);
    color: #ffffff;
  }

  .nav-ed-primary .nav-ed-label-wrap .nav-ed-label {
    font-size: 1em;
  }

  /* Flecha visible al lado del ítem con submenú */
  .nav-ed-arrow {
    display: inline-block;
    flex: none;
    font-size: 0.55em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    color: #ffffff;
    opacity: 0.95;
    transform: translateY(-0.08em);
    transition: transform 200ms ease, opacity 160ms ease;
  }

  .nav-ed-line {
    position: absolute;
    left: 3rem;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-ed-link:hover,
  .nav-ed-link:focus-visible,
  .nav-ed-link.is-preview {
    color: #ffffff;
    outline: none;
    padding-left: 10px;
  }

  .nav-ed-link:hover .nav-ed-num,
  .nav-ed-link:focus-visible .nav-ed-num,
  .nav-ed-link.is-preview .nav-ed-num,
  .nav-ed-link:hover .nav-ed-label,
  .nav-ed-link:focus-visible .nav-ed-label,
  .nav-ed-link.is-preview .nav-ed-label {
    color: #ffffff;
  }

  .nav-ed-link:hover .nav-ed-line,
  .nav-ed-link:focus-visible .nav-ed-line,
  .nav-ed-link.is-preview .nav-ed-line {
    transform: scaleX(1);
  }

  .nav-ed-link--has-sub:hover .nav-ed-arrow,
  .nav-ed-link--has-sub:focus-visible .nav-ed-arrow,
  .nav-ed-link--has-sub.is-preview .nav-ed-arrow {
    transform: translate(0.12em, -0.08em);
    opacity: 1;
  }

  .nav-ed-link--all .nav-ed-label {
    color: #ffffff;
  }

  .nav-ed-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 4px 0 8px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 160ms ease;
  }

  .nav-ed-back:hover,
  .nav-ed-back:focus-visible {
    color: #f5b300;
    outline: none;
  }

  .nav-ed-sub-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
  }

  .nav-ed-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0 8px;
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0ms;
  }

  .nav-overlay.is-open:not(.is-sub) .nav-ed-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(120ms + (var(--nav-i, 0) * 70ms));
  }

  .nav-ed-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: #f5b300;
    color: #03112f;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  }

  .nav-ed-cta-primary:hover {
    background: #ffc933;
  }

  /* Redes sociales en menú — fila horizontal */
  .nav-ed-social {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .nav-ed-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
      background 160ms ease,
      border-color 160ms ease,
      color 160ms ease,
      transform 160ms ease;
  }

  .nav-ed-social-link svg {
    display: block;
    flex: none;
  }

  .nav-ed-social-name {
    display: none;
  }

  .nav-ed-social-link:hover,
  .nav-ed-social-link:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    color: #03112f;
    outline: none;
    transform: translateY(-1px);
  }

  @media (min-width: 480px) {
    .nav-ed-social-name {
      display: inline;
    }
  }

  /* Preview visual (desktop) */
  .nav-ed-preview {
    display: none;
    min-height: 0;
  }

  .nav-ed-preview-frame {
    position: relative;
    width: 100%;
    height: min(72vh, 640px);
    max-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  }

  .nav-ed-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 280ms ease, transform 520ms ease;
  }

  .nav-ed-preview-img.is-active {
    opacity: 1;
    transform: scale(1);
  }

  .nav-ed-preview-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, transparent, rgba(2, 11, 31, 0.88) 70%);
    color: #fff;
  }

  .nav-ed-preview-kicker {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
  }

  .nav-ed-preview-caption {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  html.nav-open,
  html.nav-open body {
    overflow: hidden !important;
    touch-action: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html.nav-open::-webkit-scrollbar,
  html.nav-open body::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  html.nav-open .nav-overlay,
  html.nav-open .nav-ed,
  html.nav-open .nav-ed-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html.nav-open .nav-overlay::-webkit-scrollbar,
  html.nav-open .nav-ed::-webkit-scrollbar,
  html.nav-open .nav-ed-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  html.nav-open .whatsapp-float,
  html.nav-open .floating-cta {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
  }

  @media (min-width: 900px) {
    .nav-shell {
      width: min(1200px, calc(100% - 48px));
      padding: 14px 0;
    }

    .nav-brand {
      height: 55px;
      max-width: 216px;
      padding: 0 24px 0 18px;
      clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
    }

    .brand-logo {
      height: 34px;
      max-width: 173px;
    }

    .site-header.is-compact .nav-brand {
      height: 50px;
      max-width: 202px;
    }

    .site-header.is-compact .brand-logo {
      height: 31px;
      max-width: 158px;
    }

    .nav-ed {
      padding-inline: max(28px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-left));
      width: min(1240px, 100%);
      margin-inline: auto;
      overflow: hidden;
    }

    /* Desktop: sin barra al animar enlaces; el scroll sigue oculto si hace falta */
    .nav-ed-primary,
    .nav-ed-sub {
      overflow-x: hidden;
      overflow-y: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .nav-ed-body {
      overflow: hidden;
    }

    .nav-ed-body {
      grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
      gap: 40px;
      align-items: center;
      padding-top: 12px;
    }

    .nav-ed-preview {
      display: block;
      opacity: 0;
      transform: translateY(18px) scale(0.98);
      transition:
        opacity 560ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
        transform 560ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
    }

    .nav-overlay.is-open .nav-ed-preview {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    .nav-ed-label-wrap,
    .nav-ed-label,
    .nav-ed-primary .nav-ed-label,
    .nav-ed-primary .nav-ed-link--all .nav-ed-label {
      font-size: clamp(1.55rem, 2.8vw, 2.25rem);
    }

    .nav-ed-primary .nav-ed-label-wrap .nav-ed-label {
      font-size: 1em;
    }

    .nav-ed-link {
      padding-top: 11px;
      padding-bottom: 12px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .nav-ed-link,
    .nav-ed-cta,
    .nav-ed-preview,
    .nav-ed-preview-img,
    .nav-overlay {
      transition-duration: 1ms !important;
      transition-delay: 0ms !important;
    }

    .nav-ed-link,
    .nav-ed-cta {
      transform: none !important;
    }
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background:
      radial-gradient(12px 12px at 25% 25%, rgba(245, 179, 0, 0.95), transparent 60%),
      linear-gradient(135deg, rgba(245, 179, 0, 0.12), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex: none;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--fg);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
    will-change: transform;
  }

  .btn-primary {
    background: linear-gradient(135deg, rgba(245, 179, 0, 0.98), rgba(245, 179, 0, 0.78));
    color: #03112f;
    border-color: rgba(245, 179, 0, 0.65);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  }

  .btn-ghost {
    border-color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 28%, transparent);
    color: var(--section-fg, var(--page-fg));
  }

  .btn:hover {
    transform: translateY(-1px);
  }

  .btn-ghost:hover {
    border-color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 40%, transparent);
    background: color-mix(in srgb, var(--section-fg, var(--page-fg)) 8%, transparent);
  }

  .btn-primary:hover {
    border-color: rgba(245, 179, 0, 0.85);
    background: linear-gradient(135deg, #ffc933, #f5b300);
    color: #03112f;
  }

  .kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 74%, transparent);
  }

  .section-title {
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(40px, 6vw, 64px);
    letter-spacing: 0.02em;
    line-height: 0.92;
    margin: 12px 0 10px;
    color: var(--section-fg, var(--page-fg));
  }

  .section-subtitle {
    color: var(--section-muted, var(--muted));
    max-width: 54ch;
    margin: 0;
    font-size: 16px;
  }

  /* Acento de texto: usa el accent de la sección */
  .text-accent {
    color: var(--section-accent, var(--accent));
  }

  .hero {
    position: relative;
    isolation: isolate;
    color: #fff;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #03112f;
  }

  .hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: opacity;
  }

  .hero-bg-slide.is-active {
    opacity: 1;
    z-index: 1;
  }

  .hero-bg-image {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    transform: scale(1.02);
  }

  /* Móvil: foto vertical. El recorte es a los lados en pantallas 9:16/19.5:9 */
  .hero-bg-image--mobile {
    display: block;
    object-position: center 38%;
    animation: hero-kenburns-m 16s ease-in-out infinite alternate;
  }

  /* Desktop 1712×1152 (~3:2). En 16:9 se recorta un poco arriba/abajo */
  .hero-bg-image--desktop {
    display: none;
    object-position: center 46%;
    animation: hero-kenburns 18s ease-in-out infinite alternate;
  }

  @media (min-width: 768px) {
    .hero-bg-image--mobile {
      display: none;
      animation: none;
    }

    .hero-bg-image--desktop {
      display: block;
    }
  }

  .hero-bg-slide:not(.is-active) .hero-bg-image {
    animation-play-state: paused;
  }

  @keyframes hero-kenburns-m {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.06) translate3d(-0.4%, -0.5%, 0); }
  }

  @keyframes hero-kenburns {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.055) translate3d(-0.5%, -0.35%, 0); }
  }

  .hero-bg-wash {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* Móvil: más peso abajo para legibilidad del copy */
    background:
      linear-gradient(180deg, rgba(3, 17, 47, 0.62) 0%, rgba(3, 17, 47, 0.28) 28%, rgba(3, 17, 47, 0.55) 55%, rgba(3, 17, 47, 0.94) 100%),
      linear-gradient(90deg, rgba(3, 17, 47, 0.55) 0%, rgba(3, 17, 47, 0.2) 100%),
      radial-gradient(700px 360px at 20% 85%, rgba(245, 179, 0, 0.16), transparent 60%);
  }

  .hero-bg-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.4);
  }

  .hero-ui {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
  }

  .hero-main {
    position: relative;
    z-index: 3;
    width: min(1120px, calc(100% - 1.5rem));
    margin-inline: auto;
    padding: clamp(5.8rem, 12vh, 7.5rem) 0 1.15rem;
    display: grid;
    gap: 12px;
    max-width: 58ch;
    flex: 1 1 auto;
    align-content: end;
    min-height: 0;
  }

  .hero-copy-stack {
    display: grid;
    align-items: end;
  }

  .hero-content {
    grid-area: 1 / 1;
    display: grid;
    gap: 12px;
    max-width: 58ch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.2s ease, visibility 1.2s ease;
  }

  .hero-content.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero-content .kicker {
    color: rgba(255, 255, 255, 0.78);
  }

  .hero-title,
  p.hero-title {
    color: #fff;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    margin: 10px 0 14px;
  }

  .hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(15px, 1.6vw, 17px);
    max-width: 46ch;
    margin: 0;
    line-height: 1.55;
  }

  .hero-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
  }

  .hero-actions .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
  }

  .hero-scroll-hint {
    display: none;
    margin-top: 1.4rem;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
  }

  .hero-scroll-line {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 179, 0, 0.9), transparent);
  }

  @media (min-width: 768px) {
    .hero-bg-image--desktop {
      transform: scale(1.02);
    }

    .hero-bg-wash {
      background:
        linear-gradient(180deg, rgba(3, 17, 47, 0.55) 0%, rgba(3, 17, 47, 0.35) 35%, rgba(3, 17, 47, 0.78) 72%, rgba(3, 17, 47, 0.96) 100%),
        linear-gradient(90deg, rgba(3, 17, 47, 0.72) 0%, rgba(3, 17, 47, 0.28) 55%, rgba(3, 17, 47, 0.45) 100%),
        radial-gradient(900px 420px at 15% 80%, rgba(245, 179, 0, 0.18), transparent 60%);
    }

    .hero-main {
      max-width: 62ch;
      width: min(1120px, calc(100% - 2rem));
      gap: 14px;
      padding: clamp(6.5rem, 14vh, 8.5rem) 0 1.4rem;
    }

    .hero-content {
      gap: 14px;
    }

    .hero-scroll-hint {
      display: inline-flex;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-bg-image {
      animation: none !important;
      transform: scale(1.02);
    }

    .hero-bg-slide,
    .hero-content {
      transition: none;
    }
  }

  /* Franja compacta: no usa el full-viewport de las demás secciones */
  .marquee {
    position: relative;
    overflow: hidden;
    min-height: 0 !important;
    height: auto;
    padding-block: 0 !important;
    justify-content: center;
    border-top: 1px solid var(--section-stroke, rgba(255, 255, 255, 0.12));
    border-bottom: 1px solid var(--section-stroke, rgba(255, 255, 255, 0.12));
    color: var(--section-fg, var(--page-fg));
  }

  /* Dentro del hero: va al pie del 100vh, encima de la imagen */
  .hero .marquee,
  .hero-marquee {
    --section-bg: var(--color-gold);
    --section-fg: var(--color-navy);
    --section-stroke: rgba(3, 17, 47, 0.16);
    flex: 0 0 auto;
    width: 100%;
    z-index: 4;
    background-color: var(--color-gold);
    color: var(--color-navy);
    border-top: 3px solid var(--color-lilac);
    border-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .marquee.marquee::before,
  .marquee.is-inview::before {
    display: none; /* sin wash de pantalla completa */
  }

  .marquee-track {
    display: flex;
    gap: 20px;
    padding: 14px 0;
    font-family: "Bebas Neue", system-ui, sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: clamp(16px, 2.6vw, 24px);
    line-height: 1.1;
    animation: marquee 18s linear infinite;
    color: inherit;
  }

  .value-section {
    position: relative;
  }

  /* Franjas lila en algunos tramos (no en todas las secciones) */
  main > section.value-section::after,
  main > section.cases::after,
  main > section.social-proof::after,
  main > section.service-related::after,
  .site-footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    background: linear-gradient(
      90deg,
      transparent 4%,
      var(--color-lilac) 22%,
      var(--color-lilac-deep) 50%,
      var(--color-lilac) 78%,
      transparent 96%
    );
  }

  .site-footer::after {
    background: linear-gradient(
      90deg,
      transparent 8%,
      var(--color-lilac-deep) 30%,
      var(--color-lilac) 70%,
      transparent 92%
    );
  }

  .value-card {
    position: relative;
    border-radius: calc(var(--radius) + 14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 280px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    background: rgba(255, 255, 255, 0.04);
  }

  .value-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    transform: scale(1.04);
    transition: transform 700ms ease;
  }

  .value-card:hover .value-card-image {
    transform: scale(1.07);
  }

  .value-card-shade {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(3, 17, 47, 0.15) 0%, rgba(3, 17, 47, 0.82) 100%),
      radial-gradient(500px 240px at 20% 20%, rgba(245, 179, 0, 0.22), transparent 60%);
    z-index: 1;
  }

  .value-card-body {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 22px;
    display: grid;
    align-content: end;
    gap: 8px;
  }

  .mask-eyebrow {
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.76);
  }

  .mask-headline {
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(36px, 5.2vw, 52px);
    line-height: 0.92;
    margin: 0 0 12px;
    color: #ffffff;
  }

  .mask-headline .text-accent {
    color: #f5b300;
  }

  .mask-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    color: #ffffff;
  }

  .stat-number {
    margin: 0;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: #ffffff;
  }

  .stat-label {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
  }

  .value-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    max-width: 44ch;
  }

  .value-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 90%, transparent);
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--section-accent, var(--accent));
    margin-top: 7px;
    flex: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--section-accent, var(--accent)) 18%, transparent);
  }

  /* ——— Servicios: catálogo editorial / vanguardista ——— */
  .services-shell {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
    display: grid;
    gap: 1.4rem;
  }

  .services-head {
    display: grid;
    gap: 14px;
    margin-bottom: 4px;
  }

  .services-title-accent {
    display: block;
    color: var(--color-gold);
    font-style: italic;
    letter-spacing: 0.01em;
  }

  .services-lead {
    max-width: 42ch;
  }

  .services-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    margin-inline: -4px;
    padding: 10px 4px 18px;
  }

  .services-rail {
    display: flex;
    gap: 16px;
    will-change: transform;
    padding-right: 12vw;
  }

  .svc {
    --svc-rot: -2deg;
    --img-pos: 50% 40%;
    --img-pos-m: 50% 35%;
    position: relative;
    flex: 0 0 min(78vw, 280px);
    width: min(78vw, 280px);
    aspect-ratio: 3 / 4;
    min-height: 300px;
    max-height: 400px;
    border-radius: 22px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    transform: rotate(var(--svc-rot)) scale(0.95);
    opacity: 0.72;
    transition:
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 320ms ease,
      box-shadow 320ms ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: default;
  }

  @media (max-width: 767px) {
    .services-stage {
      padding: 6px 2px 12px;
      margin-inline: 0;
    }

    .services-rail {
      gap: 12px;
      padding-right: 18vw;
    }

    .svc {
      flex: 0 0 min(76vw, 260px);
      width: min(76vw, 260px);
      min-height: 280px;
      max-height: 340px;
      aspect-ratio: 3 / 4;
      border-radius: 20px;
    }

    .svc-index {
      font-size: clamp(48px, 14vw, 72px) !important;
    }

    .services-bar {
      margin-top: 4px;
    }
  }

  .svc.is-active {
    --svc-rot: 0deg;
    opacity: 1;
    transform: rotate(0deg) scale(1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 179, 0, 0.35);
    z-index: 2;
  }

  .svc-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #06142f;
  }

  .svc-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--img-pos-m, var(--img-pos, 50% 40%));
    transform: scale(1.02);
    transform-origin: var(--img-pos-m, var(--img-pos, 50% 40%));
    filter: grayscale(0.22) contrast(1.04) saturate(0.96);
    transition: transform 700ms ease, filter 500ms ease;
  }

  /* Encuadre por servicio — móvil primero, desktop lo pisa abajo */
  .svc[data-svc="01"] { --img-pos: 50% 32%; --img-pos-m: 48% 28%; }
  .svc[data-svc="02"] { --img-pos: 55% 28%; --img-pos-m: 62% 26%; }
  .svc[data-svc="03"] { --img-pos: 50% 45%; --img-pos-m: 50% 40%; }
  .svc[data-svc="04"] { --img-pos: 50% 35%; --img-pos-m: 42% 32%; }
  .svc[data-svc="05"] { --img-pos: 48% 30%; --img-pos-m: 50% 24%; }
  .svc[data-svc="06"] { --img-pos: 50% 25%; --img-pos-m: 50% 20%; }

  .svc.is-active .svc-visual img,
  .svc:hover .svc-visual img {
    transform: scale(1.05);
    filter: grayscale(0) contrast(1.05) saturate(1.04);
  }

  .svc-wash {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(3, 17, 47, 0.2) 0%, rgba(3, 17, 47, 0.28) 35%, rgba(3, 17, 47, 0.94) 100%),
      radial-gradient(420px 240px at 80% 0%, rgba(245, 179, 0, 0.2), transparent 60%);
  }

  .svc-grain {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
    pointer-events: none;
  }

  .svc-frame {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
    transition: opacity 280ms ease, border-color 280ms ease;
  }

  @media (min-width: 960px) {
    .svc-frame {
      inset: 12px;
      border-radius: 20px;
    }
  }

  .svc.is-active .svc-frame,
  .svc:hover .svc-frame {
    opacity: 1;
    border-color: rgba(245, 179, 0, 0.45);
  }

  .svc-index {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 2;
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(64px, 12vw, 96px);
    line-height: 0.8;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.42);
    opacity: 0.85;
    pointer-events: none;
    transition: -webkit-text-stroke-color 280ms ease, color 280ms ease, opacity 280ms ease;
  }

  .svc.is-active .svc-index {
    color: rgba(245, 179, 0, 0.18);
    -webkit-text-stroke: 1px rgba(245, 179, 0, 0.55);
  }

  .svc-tag {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(3, 17, 47, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
  }

  .svc-main {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px 16px 18px;
    display: grid;
    gap: 8px;
    align-content: end;
  }

  @media (min-width: 960px) {
    .svc-main {
      padding: 22px 22px 24px;
      gap: 10px;
    }
  }

  .svc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--color-navy);
    background: var(--color-gold);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(6px);
    opacity: 0.9;
    transition: transform 320ms ease, opacity 280ms ease;
  }

  .svc.is-active .svc-icon,
  .svc:hover .svc-icon {
    transform: translateY(0);
    opacity: 1;
  }

  .svc-title {
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(34px, 6vw, 48px);
    line-height: 0.9;
    letter-spacing: 0.02em;
    margin: 0;
    max-width: 10ch;
  }

  .svc-copy {
    margin: 0;
    max-width: 28ch;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition:
      max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 280ms ease,
      transform 320ms ease;
  }

  .svc.is-active .svc-copy,
  .svc:hover .svc-copy {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
  }

  .svc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 280ms ease, transform 320ms ease;
    pointer-events: none;
  }

  .svc.is-active .svc-actions,
  .svc:hover .svc-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .svc-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold);
    transition: gap 200ms ease, color 160ms ease;
  }

  .svc-link--quote {
    color: #fff;
  }

  .svc-link:hover {
    gap: 14px;
  }

  .svc-link-arrow {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(245, 179, 0, 0.45);
    background: rgba(245, 179, 0, 0.12);
  }

  .svc-link--quote .svc-link-arrow {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
  }

  .svc--social .svc-tag {
    border-color: color-mix(in srgb, var(--color-lilac) 55%, transparent);
    color: var(--color-lilac);
  }

  .svc--social .svc-icon {
    background: var(--color-lilac);
    color: var(--color-navy);
  }

  .svc--social.is-active {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--color-lilac) 45%, transparent);
  }

  .svc--social .svc-wash {
    background:
      linear-gradient(180deg, rgba(3, 17, 47, 0.2) 0%, rgba(3, 17, 47, 0.28) 35%, rgba(3, 17, 47, 0.94) 100%),
      radial-gradient(420px 240px at 80% 0%, rgba(196, 181, 232, 0.28), transparent 60%);
  }

  .services-bar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
  }

  .services-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease;
  }

  .services-nav-btn:hover {
    border-color: rgba(245, 179, 0, 0.5);
    background: rgba(245, 179, 0, 0.12);
  }

  .services-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .services-progress {
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
  }

  .services-progress-fill {
    display: block;
    height: 100%;
    width: 16.66%;
    background: linear-gradient(90deg, rgba(245, 179, 0, 0.4), var(--color-gold));
    transform-origin: left center;
    transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .services-counter {
    margin: 0;
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: 22px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    min-width: 4.5ch;
    text-align: right;
  }

  .services-counter-sep {
    opacity: 0.4;
    margin: 0 2px;
  }

  /* Desktop: bento asimétrico, sin carrusel horizontal forzado */
  @media (min-width: 960px) {
    .services-shell {
      gap: 1.8rem;
    }

    .services-head {
      grid-template-columns: 1.4fr 0.8fr;
      align-items: end;
      gap: 24px;
      margin-bottom: 8px;
    }

    .services-stage {
      overflow: visible;
    }

    .services-rail {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      grid-auto-rows: minmax(200px, 1fr);
      gap: 16px;
      transform: none !important;
      padding-right: 0;
      min-height: min(72vh, 680px);
    }

    .svc {
      flex: unset;
      width: auto;
      min-height: 0;
      max-height: none;
      aspect-ratio: auto;
      height: 100%;
      opacity: 1;
      transform: none;
      border-radius: 26px;
      transition:
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 320ms ease,
        border-color 280ms ease;
    }

    .svc-visual img {
      object-position: var(--img-pos, 50% 40%);
      transform-origin: var(--img-pos, 50% 40%);
      transform: scale(1.03);
    }

    .svc.is-active .svc-visual img,
    .svc:hover .svc-visual img {
      transform: scale(1.07);
    }

    .svc-wash {
      background:
        linear-gradient(180deg, rgba(3, 17, 47, 0.15) 0%, rgba(3, 17, 47, 0.35) 40%, rgba(3, 17, 47, 0.92) 100%),
        radial-gradient(500px 280px at 80% 0%, rgba(245, 179, 0, 0.22), transparent 60%);
    }

    .svc.is-active {
      transform: none;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }

    /* Anchos/altos del bento: imágenes con proporciones más estables */
    .svc:nth-child(1) { grid-column: 1 / span 7; grid-row: span 2; min-height: 280px; --img-pos: 50% 30%; }
    .svc:nth-child(2) { grid-column: 8 / span 5; grid-row: span 2; min-height: 280px; --img-pos: 60% 25%; }
    .svc:nth-child(3) { grid-column: 1 / span 4; grid-row: span 2; min-height: 260px; --img-pos: 50% 42%; }
    .svc:nth-child(4) { grid-column: 5 / span 8; grid-row: span 2; min-height: 260px; --img-pos: 45% 35%; }
    .svc:nth-child(5) { grid-column: 1 / span 6; grid-row: span 2; min-height: 260px; --img-pos: 48% 28%; }
    .svc:nth-child(6) { grid-column: 7 / span 6; grid-row: span 2; min-height: 260px; --img-pos: 50% 22%; }

    .svc:nth-child(odd) {
      clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
    }

    .svc:nth-child(even) {
      clip-path: polygon(0 0, 100% 0, 100% 100%, 4% 100%, 0 90%);
    }

    .svc:hover {
      transform: translateY(-8px) scale(1.015);
      z-index: 3;
      box-shadow: 0 34px 70px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(245, 179, 0, 0.35);
    }

    .svc .svc-copy {
      max-height: 0;
      opacity: 0;
    }

    .svc:hover .svc-copy,
    .svc:focus-within .svc-copy {
      max-height: 120px;
      opacity: 1;
      transform: translateY(0);
    }

    .svc .svc-actions {
      opacity: 0;
      pointer-events: none;
    }

    .svc:hover .svc-actions,
    .svc:focus-within .svc-actions {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .svc:hover .svc-icon,
    .svc:focus-within .svc-icon {
      transform: translateY(0);
    }

    .svc:hover .svc-index {
      color: rgba(245, 179, 0, 0.18);
      -webkit-text-stroke: 1px rgba(245, 179, 0, 0.55);
    }

    /* Barra de progreso solo útil en móvil */
    .services-bar {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .svc,
    .svc-visual img,
    .svc-copy,
    .svc-link,
    .svc-actions,
    .services-progress-fill {
      transition: none !important;
    }
  }

  .tilt {
    transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
  }

  .tilt:hover {
    transform: translateY(-3px) rotate(-0.35deg);
    border-color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 28%, transparent);
    background: color-mix(in srgb, var(--section-fg, var(--page-fg)) 8%, transparent);
  }

  .cases-head {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
  }

  .cases-head--folio {
    gap: 12px;
    margin-bottom: 28px;
  }

  @media (min-width: 900px) {
    .cases-head--folio {
      grid-template-columns: 1.2fr 0.9fr;
      align-items: end;
      gap: 28px;
      margin-bottom: 36px;
    }
  }

  /* ——— Folio vanguardista: 3 casos ——— */
  .cases-folio {
    position: relative;
    display: grid;
    gap: 18px;
  }

  .folio-rail {
    display: none;
  }

  .folio-stage {
    display: grid;
    gap: 14px;
  }

  .folio-card {
    position: relative;
    display: block;
    /* Altura real: el media/body son absolute y no aportan al flujo */
    min-height: 280px;
    height: 280px;
    border-radius: 28px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    border: 1px solid rgba(3, 17, 47, 0.12);
    box-shadow: 0 18px 40px rgba(3, 17, 47, 0.12);
    transition:
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 420ms ease,
      border-color 320ms ease;
  }

  .folio-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 0 99px 99px 0;
    background: linear-gradient(180deg, var(--color-lilac), var(--color-lilac-deep));
    z-index: 3;
    pointer-events: none;
    opacity: 0.92;
  }

  @media (max-width: 639px) {
    .cases-folio {
      gap: 12px;
    }

    .folio-stage {
      gap: 10px;
    }

    .folio-card,
    .folio-card--lead,
    .folio-card--mid,
    .folio-card--tail {
      min-height: 220px;
      height: 220px;
      border-radius: 20px;
    }

    .folio-index {
      font-size: clamp(52px, 16vw, 80px) !important;
    }

    .folio-title {
      font-size: clamp(1.15rem, 4.5vw, 1.4rem) !important;
      max-width: 16ch;
    }

    .folio-body {
      padding: 14px 14px 12px !important;
      gap: 6px;
    }

    .cases-more {
      margin-top: 16px;
    }

    .cases-more-btn {
      min-width: 100%;
    }
  }

  .folio-card:hover,
  .folio-card:focus-visible {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 28px 60px rgba(3, 17, 47, 0.22);
    border-color: rgba(3, 17, 47, 0.28);
    outline: none;
  }

  .folio-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #03112f;
  }

  .folio-media img,
  .folio-media-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.06);
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .folio-media-fallback {
    background:
      radial-gradient(420px 260px at 70% 20%, rgba(245, 179, 0, 0.35), transparent 60%),
      linear-gradient(145deg, #061a45, #03112f 55%, #0a2048);
  }

  .folio-card:hover .folio-media img,
  .folio-card:focus-visible .folio-media img {
    transform: scale(1.12);
  }

  .folio-grain {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  }

  .folio-wash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(3, 17, 47, 0.08) 0%, rgba(3, 17, 47, 0.2) 35%, rgba(3, 17, 47, 0.88) 100%),
      linear-gradient(90deg, rgba(3, 17, 47, 0.55) 0%, transparent 55%);
  }

  .folio-index {
    position: absolute;
    top: 10px;
    right: 8px;
    z-index: 2;
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(72px, 18vw, 120px);
    line-height: 0.78;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.38);
    pointer-events: none;
    user-select: none;
    transition: color 320ms ease, -webkit-text-stroke-color 320ms ease, transform 420ms ease;
  }

  .folio-card:hover .folio-index,
  .folio-card:focus-visible .folio-index {
    color: rgba(245, 179, 0, 0.18);
    -webkit-text-stroke-color: rgba(245, 179, 0, 0.55);
    transform: translateY(-4px);
  }

  .folio-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px 18px 18px;
    display: grid;
    gap: 8px;
    align-content: end;
  }

  .folio-tag {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
  }

  .folio-title {
    margin: 0;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    font-weight: 800;
    max-width: 14ch;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  }

  .folio-metric {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: rgba(245, 179, 0, 0.95);
    letter-spacing: 0.01em;
  }

  .folio-go {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    width: fit-content;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
  }

  .folio-go-arrow {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
  }

  .folio-card:hover .folio-go-arrow,
  .folio-card:focus-visible .folio-go-arrow {
    transform: translate(2px, -2px);
    background: rgba(245, 179, 0, 0.95);
    border-color: rgba(245, 179, 0, 0.95);
    color: #03112f;
  }

  .cases-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
  }

  .cases-more-btn {
    min-width: min(100%, 280px);
  }

  /* Móvil: los 3 en stack, altura fija (contenido absolute no aporta height) */
  .folio-stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .folio-card--lead,
  .folio-card--mid,
  .folio-card--tail {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-height: 280px;
    height: 280px;
    max-height: none;
    transform: none;
    clip-path: none;
  }

  @media (min-width: 640px) and (max-width: 899px) {
    .folio-stage {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 300px 260px;
      gap: 14px;
    }

    .folio-card--lead {
      grid-column: 1 / -1;
      grid-row: 1;
      height: 300px;
      min-height: 300px;
      border-radius: 28px;
    }

    .folio-card--mid,
    .folio-card--tail {
      grid-row: 2;
      height: 260px;
      min-height: 260px;
    }
  }

  /* Desktop: bento con filas/alturas EXPLÍCITAS (evita colapso de 1fr + absolute) */
  @media (min-width: 900px) {
    .cases-folio {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      gap: 22px;
      align-items: stretch;
    }

    .folio-rail {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding-block: 8px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: rgba(3, 17, 47, 0.55);
      writing-mode: vertical-rl;
      transform: rotate(180deg);
    }

    .folio-rail-line {
      flex: 1;
      width: 1px;
      min-height: 80px;
      background: linear-gradient(180deg, transparent, rgba(3, 17, 47, 0.35), transparent);
      writing-mode: horizontal-tb;
      transform: none;
    }

    .folio-stage {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      grid-template-rows: 270px 270px;
      gap: 16px;
      height: 556px; /* 270 + 16 + 270 */
      min-height: 556px;
      align-items: stretch;
    }

    .folio-card--lead {
      grid-column: 1;
      grid-row: 1 / span 2;
      width: 100%;
      height: 100%;
      min-height: 556px;
      border-radius: 32px 20px 32px 20px;
    }

    .folio-card--mid {
      grid-column: 2;
      grid-row: 1;
      width: 100%;
      height: 270px;
      min-height: 270px;
      border-radius: 22px 30px 18px 26px;
      z-index: 2;
    }

    .folio-card--mid:hover,
    .folio-card--mid:focus-visible {
      transform: translateY(-4px) scale(1.015);
      z-index: 4;
    }

    .folio-card--tail {
      grid-column: 2;
      grid-row: 2;
      width: 100%;
      height: 270px;
      min-height: 270px;
      border-radius: 18px 26px 28px 20px;
      z-index: 2;
    }

    .folio-card--tail:hover,
    .folio-card--tail:focus-visible {
      transform: translateY(-4px) scale(1.015);
      z-index: 4;
    }

    .folio-card--lead .folio-title {
      font-size: clamp(1.6rem, 2.4vw, 2.15rem);
      max-width: 12ch;
    }

    .folio-card--mid .folio-body,
    .folio-card--tail .folio-body {
      padding: 18px 16px 16px;
    }
  }

  /* Grid clásico: solo listados internos */
  .cases-grid {
    display: grid;
    gap: 18px;
  }

  .case-item {
    border-radius: calc(var(--radius) + 16px);
    border: 1px solid var(--section-stroke, rgba(255, 255, 255, 0.14));
    background: var(--section-card, rgba(255, 255, 255, 0.03));
    overflow: hidden;
    display: grid;
    color: var(--section-fg, var(--page-fg));
  }

  .case-item.alt .case-media {
    order: 2;
  }

  .case-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .case-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.04);
    transition: transform 480ms ease;
  }

  .case-item:hover .case-media img {
    transform: scale(1.09);
  }

  .case-body {
    padding: 16px 16px 18px;
    display: grid;
    gap: 6px;
  }

  .case-tag {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 62%, transparent);
    margin: 0;
  }

  .case-body h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.01em;
    line-height: 1.12;
    font-weight: 800;
  }

  .case-metric {
    margin: 0;
    color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 78%, transparent);
    font-weight: 700;
  }

  .case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 4px;
  }

  .case-link {
    color: var(--section-accent, var(--accent));
    font-weight: 800;
    letter-spacing: 0.02em;
    width: fit-content;
    position: relative;
    padding-bottom: 4px;
  }

  .case-link--ext {
    color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 78%, transparent);
  }

  .case-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: color-mix(in srgb, var(--section-accent, var(--accent)) 70%, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
  }

  .case-link:hover::after {
    transform: scaleX(1);
  }

  .process-grid {
    display: grid;
    gap: 22px;
  }

  .process-copy {
    display: grid;
    gap: 0;
    align-content: start;
  }

  .process-visual {
    margin: 22px 0 0;
    max-width: 440px;
  }

  .process-visual-frame {
    position: relative;
    border-radius: calc(var(--radius) + 8px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    aspect-ratio: 5 / 4;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transform: rotate(-1.5deg);
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
  }

  .process-visual:hover .process-visual-frame {
    transform: rotate(0deg) translateY(-4px);
    border-color: rgba(245, 179, 0, 0.35);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 179, 0, 0.12);
  }

  .process-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    transform: scale(1.06);
    transition: transform 700ms ease;
  }

  .process-visual:hover .process-visual-image {
    transform: scale(1.12);
  }

  .process-visual-shade {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(160deg, rgba(3, 17, 47, 0.05) 0%, rgba(3, 17, 47, 0.55) 100%),
      radial-gradient(280px 160px at 15% 20%, rgba(245, 179, 0, 0.22), transparent 65%);
    pointer-events: none;
  }

  .process-visual-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(3, 17, 47, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  .process-visual-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #25d366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18);
    animation: process-pulse 1.8s ease-out infinite;
  }

  @keyframes process-pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    }
    70% {
      box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
  }

  .process-visual-caption {
    margin: 12px 0 0;
    font-size: 13px;
    color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 62%, transparent);
    letter-spacing: 0.04em;
    transform: rotate(-1.5deg);
    padding-left: 4px;
  }

  .steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
  }

  .steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 14px;
    padding: 16px;
    border-radius: calc(var(--radius) + 10px);
    border: 1px solid var(--section-stroke, rgba(255, 255, 255, 0.14));
    background: var(--section-card, rgba(255, 255, 255, 0.03));
    color: var(--section-fg, var(--page-fg));
  }

  .step-index {
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: 30px;
    color: var(--section-accent, var(--accent));
    letter-spacing: 0.04em;
  }

  .step-title {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.01em;
  }

  .step-desc {
    grid-column: 2 / -1;
    color: var(--section-muted, rgba(255, 255, 255, 0.74));
    font-size: 14px;
  }

  .proof-head {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
  }

  .logo-wall {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 22px;
    padding: 0;
  }

  .logo-wall li {
    min-width: 0;
  }

  .logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    height: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--section-stroke, rgba(255, 255, 255, 0.14));
    background: var(--section-card, rgba(255, 255, 255, 0.03));
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      background 180ms ease;
  }

  a.logo-card:hover,
  a.logo-card:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--section-accent, var(--accent)) 50%, transparent);
    background: color-mix(in srgb, var(--section-accent, var(--accent)) 10%, transparent);
    outline: none;
  }

  .logo-card img {
    max-height: 48px;
    max-width: min(100%, 168px);
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .testimonials {
    width: 100%;
    max-width: 720px;
    margin-top: 8px;
  }

  .testimonials-viewport {
    overflow: hidden;
    border-radius: calc(var(--radius) + 14px);
    border: 1px solid var(--section-stroke, rgba(255, 255, 255, 0.14));
    background:
      linear-gradient(
        135deg,
        color-mix(in srgb, var(--section-accent, var(--accent)) 12%, transparent),
        var(--section-card, rgba(255, 255, 255, 0.03))
      );
  }

  .testimonials-track {
    display: flex;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .testimonials:not(.is-carousel) .testimonials-track {
    display: block;
  }

  .quote-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 22px 20px;
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 168px;
    color: var(--section-fg, var(--page-fg));
    border: 0;
    background: transparent;
  }

  .quote-card blockquote {
    margin: 0;
    font-size: clamp(16px, 2.2vw, 19px);
    line-height: 1.5;
    color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 94%, transparent);
    font-weight: 600;
  }

  .quote-name {
    font-weight: 900;
    letter-spacing: 0.02em;
    display: block;
  }

  .quote-role,
  .quote-company {
    display: block;
    color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 64%, transparent);
    font-size: 13px;
  }

  .quote-company {
    margin-top: 2px;
    font-weight: 600;
    color: color-mix(in srgb, var(--section-accent, var(--accent)) 80%, var(--section-fg));
  }

  .testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
  }

  .testimonials-nav {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--section-stroke, rgba(255, 255, 255, 0.18));
    background: var(--section-card, rgba(255, 255, 255, 0.04));
    color: var(--section-fg, #fff);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  }

  .testimonials-nav:hover {
    border-color: color-mix(in srgb, var(--section-accent, var(--accent)) 55%, transparent);
    background: color-mix(in srgb, var(--section-accent, var(--accent)) 12%, transparent);
  }

  .testimonials-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .testimonials-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--section-fg, #fff) 28%, transparent);
    cursor: pointer;
    transition: width 200ms ease, background 200ms ease;
  }

  .testimonials-dot.is-active {
    width: 22px;
    background: var(--section-accent, var(--accent));
  }

  .faq-head {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
    max-width: 720px;
  }

  .faq-grid {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 720px;
    margin: 0;
  }

  .faq-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: calc(var(--radius) + 10px);
    border: 1px solid var(--section-stroke, rgba(255, 255, 255, 0.14));
    background: var(--section-card, rgba(255, 255, 255, 0.03));
    padding: 0;
    color: var(--section-fg, var(--page-fg));
    overflow: hidden;
  }

  .faq-item summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.01em;
    list-style: none;
    padding: 16px 14px 16px 18px;
    min-height: 56px;
    box-sizing: border-box;
  }

  .faq-item summary::-webkit-details-marker,
  .faq-item summary::marker {
    display: none;
    content: "";
  }

  .faq-q {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    text-align: left;
    line-height: 1.3;
    padding-right: 8px;
  }

  .faq-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    position: relative;
    margin-left: auto;
    margin-right: 0;
    align-self: center;
    border: 1.5px solid color-mix(in srgb, var(--section-accent, var(--accent)) 50%, transparent);
    background: color-mix(in srgb, var(--section-accent, var(--accent)) 14%, transparent);
    transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
  }

  .faq-icon::before,
  .faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--section-accent, var(--accent));
    border-radius: 1px;
    transform: translate(-50%, -50%);
  }

  .faq-icon::before {
    width: 12px;
    height: 2px;
  }

  .faq-icon::after {
    width: 2px;
    height: 12px;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .faq-item[open] .faq-icon {
    transform: rotate(90deg);
    border-color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 35%, transparent);
    background: color-mix(in srgb, var(--section-fg, var(--page-fg)) 10%, transparent);
  }

  .faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
    opacity: 0;
  }

  .faq-body {
    margin: 0;
    padding: 0 16px 16px;
    padding-right: 62px;
    color: var(--section-muted, rgba(255, 255, 255, 0.74));
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
  }

  .cta {
    position: relative;
  }

  .cta-shell {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 4rem) 0;
  }

  @media (max-width: 767px) {
    main > section.cta[data-theme],
    main > section#contacto[data-theme] {
      padding-block: clamp(1.75rem, 5vh, 2.5rem);
    }

    .cta-shell {
      padding: 0.5rem 0 1rem;
    }

    .cta-title {
      font-size: clamp(32px, 9vw, 44px) !important;
      margin: 6px 0 8px;
    }

    .cta-subtitle {
      font-size: 14px;
    }

    .cta-notes {
      margin-top: 12px;
      gap: 8px;
    }

    .brief-form {
      padding: 16px 14px 14px !important;
      gap: 12px !important;
      border-radius: 18px;
    }

    .brief-form .field textarea {
      min-height: 96px;
    }

    .brief-form .form-submit {
      min-height: 48px;
      position: sticky;
      bottom: 12px;
      z-index: 2;
    }

    .form-intro-text {
      font-size: 13px;
    }
  }

  .cta-grid {
    display: grid;
    gap: 28px;
    align-items: start;
  }

  .cta-copy {
    max-width: 34rem;
  }

  .cta-title {
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(40px, 6.5vw, 68px);
    line-height: 0.92;
    margin: 8px 0 12px;
    letter-spacing: 0.02em;
    color: var(--section-fg, var(--page-fg));
  }

  .cta-subtitle {
    margin: 0;
    color: var(--section-muted, rgba(255, 255, 255, 0.76));
    max-width: 42ch;
    font-size: 15px;
    line-height: 1.55;
  }

  .cta-notes {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 10px;
  }

  .cta-notes li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: color-mix(in srgb, var(--section-fg, var(--page-fg)) 88%, transparent);
    font-size: 14px;
    line-height: 1.4;
  }

  .brief-form {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
      linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
      rgba(3, 17, 47, 0.35);
    padding: 22px 18px 20px;
    display: grid;
    gap: 16px;
    box-shadow:
      0 30px 70px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: border-color 240ms ease, box-shadow 240ms ease;
    color: #fff;
  }

  .hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .form-row {
    display: grid;
    gap: 14px;
  }

  .field {
    display: grid;
    gap: 7px;
    min-width: 0;
  }

  .field label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
  }

  .field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .field textarea,
  .field select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
    -webkit-appearance: none;
    appearance: none;
  }

  .field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
  }

  .field input:not([type="checkbox"]):not([type="radio"]):hover,
  .field textarea:hover,
  .field select:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
  }

  .field input:not([type="checkbox"]):not([type="radio"]):focus,
  .field textarea:focus,
  .field select:focus {
    border-color: rgba(245, 179, 0, 0.7);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(245, 179, 0, 0.16);
  }

  .field select option {
    background: #03112f;
    color: #fff;
  }

  .field input:not([type="checkbox"])[aria-invalid="true"],
  .field textarea[aria-invalid="true"],
  .field select[aria-invalid="true"] {
    border-color: rgba(255, 120, 120, 0.85);
    box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.12);
  }

  .field-full {
    grid-column: 1 / -1;
  }

  .form-footer {
    display: grid;
    gap: 12px;
    margin-top: 4px;
    padding-top: 4px;
  }

  .form-submit {
    width: 100%;
    min-height: 52px;
    gap: 10px;
    font-size: 15px;
    box-shadow: 0 16px 36px rgba(245, 179, 0, 0.22);
  }

  .form-hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    min-height: 18px;
    line-height: 1.4;
    text-align: center;
  }

  .site-footer {
    min-height: auto;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(3, 17, 47, 0.08);
    background:
      radial-gradient(720px 280px at 8% 0%, rgba(245, 179, 0, 0.1), transparent 55%),
      radial-gradient(640px 260px at 100% 100%, rgba(3, 17, 47, 0.04), transparent 50%),
      #ffffff;
    color: var(--color-navy);
  }

  .site-footer[data-theme="white"] {
    background-color: #ffffff;
    color: var(--color-navy);
  }

  .footer-inner {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 3.75rem) 0 0;
  }

  .footer-top {
    display: grid;
    gap: 2rem;
    padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
  }

  .footer-brand-block {
    display: grid;
    gap: 14px;
    max-width: 36ch;
  }

  .footer-brand {
    display: inline-flex;
    align-items: center;
    margin: 0;
    width: fit-content;
  }

  .footer-brand img {
    display: block;
    height: 22px;
    width: auto;
    max-width: 104px;
    object-fit: contain;
    object-position: left center;
  }

  .footer-tagline {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(3, 17, 47, 0.68);
  }

  .footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(3, 17, 47, 0.12);
    border-radius: 2px;
    background: rgba(3, 17, 47, 0.03);
    color: var(--color-navy);
    transition:
      background 160ms ease,
      border-color 160ms ease,
      color 160ms ease,
      transform 160ms ease;
  }

  .footer-social-link:hover,
  .footer-social-link:focus-visible {
    background: #f5b300;
    border-color: #f5b300;
    color: #03112f;
    outline: none;
    transform: translateY(-1px);
  }

  .footer-social-link svg {
    display: block;
  }

  .footer-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
  }

  .footer-btn {
    min-height: 44px;
    padding-inline: 16px;
  }

  .footer-btn-wa {
    border-color: rgba(3, 17, 47, 0.16);
    color: var(--color-navy);
    background: rgba(3, 17, 47, 0.03);
  }

  .footer-btn-wa:hover {
    border-color: rgba(37, 211, 102, 0.45);
    background: rgba(37, 211, 102, 0.1);
    color: #0b6b36;
  }

  .footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }

  .footer-col-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(3, 17, 47, 0.5);
  }

  .footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
  }

  .footer-list a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(3, 17, 47, 0.82);
    transition: color 160ms ease, transform 160ms ease;
    display: inline-block;
  }

  .footer-list a:hover {
    color: var(--color-navy);
    transform: translateX(2px);
  }

  .footer-note {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(3, 17, 47, 0.5);
    line-height: 1.4;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0 20px;
    border-top: 1px solid rgba(3, 17, 47, 0.08);
  }

  .footer-small {
    margin: 0;
    color: rgba(3, 17, 47, 0.55);
    font-size: 12px;
  }

  /* Compat: footers simples de subpáginas */
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: rgba(3, 17, 47, 0.7);
    letter-spacing: 0.06em;
  }

  .footer-links a:hover {
    color: var(--color-navy);
  }

  @media (min-width: 768px) {
    .footer-top {
      grid-template-columns: 1.1fr 1.4fr;
      gap: 2.5rem;
      align-items: start;
    }

    .footer-cols {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.5rem;
    }

    .footer-bottom {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      padding: 18px 0 24px;
    }

    .footer-brand img {
      height: 24px;
      max-width: 112px;
    }
  }

  @media (min-width: 1024px) {
    .footer-inner {
      padding-top: 3.5rem;
    }
  }

  /* Botones primary en sección gold: alto contraste (fondo navy / texto blanco) */
  [data-theme="gold"] .btn-primary,
  .cases .btn-primary,
  .cases-more-btn {
    background: #03112f !important;
    color: #ffffff !important;
    border-color: #03112f !important;
    box-shadow: 0 14px 32px rgba(3, 17, 47, 0.28);
  }

  [data-theme="gold"] .btn-primary:hover,
  .cases .btn-primary:hover,
  .cases-more-btn:hover {
    background: #0a1f4d !important;
    color: #ffffff !important;
    border-color: #0a1f4d !important;
  }

  [data-theme="gold"] .btn-primary .btn-label,
  .cases-more-btn .btn-label {
    color: #ffffff !important;
  }

  [data-theme="white"] .btn-primary {
    background: linear-gradient(135deg, rgba(245, 179, 0, 0.98), rgba(245, 179, 0, 0.78));
    color: #03112f;
  }

  [data-theme="white"] .check-label,
  [data-theme="gold"] .check-label {
    color: color-mix(in srgb, var(--section-fg) 82%, transparent) !important;
  }

  /* Hero title color */
  .hero-title {
    color: var(--section-fg, var(--page-fg));
  }

  .floating-cta {
    position: fixed;
    right: 14px;
    bottom: 90px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(245, 179, 0, 0.38);
    background: rgba(3, 17, 47, 0.82);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .floating-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* En contacto: no tapar el form */
  body.is-at-contact .floating-cta,
  body.is-at-contact .whatsapp-float {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
    transform: translateY(12px);
  }

  @media (max-width: 767px) {
    /* Solo WhatsApp en móvil; el CTA de contacto se oculta */
    .floating-cta {
      display: none !important;
    }

    .whatsapp-float {
      right: 12px;
      bottom: max(12px, env(safe-area-inset-bottom));
      padding: 0;
      width: 54px;
      height: 54px;
      justify-content: center;
      border-radius: 999px;
    }

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

    .whatsapp-float-pulse {
      inset: -3px;
    }
  }

  .floating-pill {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
  }

  .floating-arrow {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(245, 179, 0, 0.12);
    color: var(--accent);
    border: 1px solid rgba(245, 179, 0, 0.26);
  }

  /* WhatsApp floating button — siempre visible (salvo menú / zona contacto) */
  .whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 14px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.45), 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 200ms ease, visibility 200ms ease;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    background: #1ebe57;
    box-shadow: 0 18px 42px rgba(37, 211, 102, 0.55), 0 10px 28px rgba(0, 0, 0, 0.4);
  }

  .whatsapp-float:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }

  .whatsapp-float-icon {
    flex: none;
    display: block;
  }

  .whatsapp-float-label {
    font-size: 14px;
  }

  .whatsapp-float-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: whatsapp-pulse 2.2s ease-out infinite;
    pointer-events: none;
  }

  @keyframes whatsapp-pulse {
    0% {
      transform: scale(1);
      opacity: 0.7;
    }
    70% {
      transform: scale(1.18);
      opacity: 0;
    }
    100% {
      transform: scale(1.18);
      opacity: 0;
    }
  }

  /* Form improvements */
  .form-intro {
    margin: 0 0 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .form-intro-title {
    margin: 0 0 6px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--accent);
  }

  .form-intro-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.45;
  }

  .field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5b300' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 40px;
    cursor: pointer;
  }

  .field-error {
    display: none;
    font-size: 12px;
    color: #ff9b9b;
    margin: 0;
  }

  .field input[aria-invalid="true"] ~ .field-error,
  .field textarea[aria-invalid="true"] ~ .field-error,
  .field select[aria-invalid="true"] ~ .field-error,
  .field-check [aria-invalid="true"] ~ .field-error,
  .field-error.is-visible {
    display: block;
  }

  .field-check {
    gap: 8px;
  }

  .check-label {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    color: rgba(255, 255, 255, 0.86) !important;
    font-weight: 500 !important;
    cursor: pointer;
    line-height: 1.45;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 160ms ease, background 160ms ease;
    user-select: none;
  }

  .check-label:hover {
    border-color: rgba(245, 179, 0, 0.4);
    background: rgba(255, 255, 255, 0.06);
  }

  /* Checkbox real: invisible pero clicable y focusable */
  .check-label input[type="checkbox"] {
    position: absolute;
    left: 16px;
    top: 15px;
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
  }

  .check-box {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    flex: none;
    border-radius: 7px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    pointer-events: none;
  }

  .check-box::after {
    content: "";
    width: 6px;
    height: 11px;
    margin-top: -2px;
    border: solid transparent;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0.55);
    opacity: 0;
    transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease;
  }

  /* Estado checked (sibling + :has por compatibilidad) */
  .check-label input[type="checkbox"]:checked + .check-box,
  .check-label:has(input:checked) .check-box {
    border-color: var(--accent, #f5b300);
    background: var(--accent, #f5b300);
    box-shadow: 0 0 0 3px rgba(245, 179, 0, 0.2);
  }

  .check-label input[type="checkbox"]:checked + .check-box::after,
  .check-label:has(input:checked) .check-box::after {
    border-color: #03112f;
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }

  .check-label:has(input:checked),
  .check-label:has(input[type="checkbox"]:checked) {
    border-color: rgba(245, 179, 0, 0.55);
    background: rgba(245, 179, 0, 0.1);
  }

  .check-label input[type="checkbox"]:focus-visible + .check-box,
  .check-label:has(input:focus-visible) .check-box {
    box-shadow: 0 0 0 3px rgba(245, 179, 0, 0.35);
  }

  .check-text {
    flex: 1;
    min-width: 0;
  }

  .check-label:has(input[aria-invalid="true"]),
  .check-label.is-invalid {
    border-color: rgba(255, 120, 120, 0.75);
    background: rgba(255, 80, 80, 0.08);
  }

  .field select.is-preselected {
    border-color: rgba(245, 179, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(245, 179, 0, 0.16);
  }

  .form-hint.is-success {
    color: #7dffb3;
  }

  .form-hint.is-error {
    color: #ff9b9b;
  }

  .brief-form.is-success {
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(37, 211, 102, 0.2);
  }

  .cta-whatsapp {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(37, 211, 102, 0.28);
    background: rgba(37, 211, 102, 0.08);
    color: #fff;
    max-width: 100%;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  }

  .cta-whatsapp:hover {
    transform: translateY(-1px);
    background: rgba(37, 211, 102, 0.14);
    border-color: rgba(37, 211, 102, 0.5);
  }

  .cta-whatsapp-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    flex: none;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35);
  }

  .cta-whatsapp-copy {
    flex: 1;
    min-width: 0;
  }

  .cta-whatsapp strong {
    display: block;
    font-size: 14px;
    letter-spacing: 0.01em;
  }

  .cta-whatsapp small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
  }

  .cta-whatsapp-go {
    color: rgba(255, 255, 255, 0.55);
    font-size: 18px;
    flex: none;
  }

  /* contact-grid en subpages */
  .contact-grid {
    display: grid;
    gap: 28px;
    align-items: start;
  }

  @media (min-width: 900px) {
    .contact-grid {
      grid-template-columns: 0.95fr 1.05fr;
      gap: 36px;
    }
  }

  /* CTA de internas: compacto (no full-viewport) */
  main > section.service-cta-band[data-theme],
  body.is-subpage main > section.service-cta-band[data-theme] {
    min-height: 0;
    justify-content: center;
    padding-block: clamp(1.5rem, 4vh, 2.25rem);
  }

  .service-cta-band {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .service-cta-band .cta-shell,
  .service-cta-inner {
    padding-block: 0.35rem;
  }

  .service-cta-inner {
    display: grid;
    gap: 14px;
    align-items: center;
  }

  .service-cta-copy .cta-title {
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    line-height: 1.1;
    margin: 0.15em 0 0;
  }

  .service-cta-copy .cta-subtitle {
    margin-top: 0.45rem;
    font-size: 0.95rem;
    max-width: 36rem;
  }

  .service-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .service-cta-actions .form-submit {
    width: auto;
    min-width: min(100%, 220px);
    min-height: 46px;
    padding-inline: 20px;
  }

  @media (min-width: 768px) {
    .service-cta-inner {
      grid-template-columns: 1.2fr auto;
      gap: 24px;
    }

    .service-cta-actions {
      justify-content: flex-end;
    }
  }

  @media (max-width: 480px) {
    .whatsapp-float-label {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .whatsapp-float {
      width: 56px;
      height: 56px;
      padding: 0;
      justify-content: center;
      border-radius: 999px;
    }

    .floating-cta {
      bottom: 84px;
      right: 12px;
    }
  }

  @media (min-width: 768px) {
    .value-card {
      aspect-ratio: 16 / 11;
      min-height: 360px;
    }

    .cases-grid {
      gap: 22px;
    }

    .case-item {
      grid-template-columns: 1.2fr 1fr;
      align-items: stretch;
    }

    .case-item.alt {
      grid-template-columns: 1fr 1.2fr;
    }

    .case-body {
      padding: 18px 18px 18px;
    }

    .cases-more {
      margin-top: 36px;
    }

    .process-grid {
      grid-template-columns: 1fr 1.1fr;
      align-items: start;
      gap: 24px;
    }

    .logo-wall {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .logo-card {
      min-height: 96px;
    }

    .testimonials {
      max-width: 760px;
    }

    .quote-card {
      padding: 28px 28px;
      min-height: 180px;
    }

    .cta-grid {
      grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
      gap: 40px;
      align-items: center;
    }

    .brief-form {
      padding: 28px 26px 24px;
      gap: 16px;
    }

    .form-row {
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .form-footer {
      display: grid;
      gap: 12px;
    }

    .form-hint {
      text-align: left;
    }
  }

  @media (min-width: 1024px) {
    .logo-wall {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .logo-card {
      min-height: 90px;
      padding: 14px 12px;
    }

    .logo-card img {
      max-height: 40px;
    }
  }
}

@layer utilities {
  .reveal {
    will-change: transform, opacity;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
  }

  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-33.333%); }
  }

  @media (prefers-reduced-motion: reduce) {
    html:focus-within {
      scroll-behavior: auto;
    }

    .js [data-reveal] {
      opacity: 1;
      transform: none;
    }

    .marquee-track {
      animation: none;
      justify-content: center;
    }

    a.logo-card:hover,
    a.logo-card:focus-visible {
      transform: none;
    }

    .whatsapp-float-pulse {
      animation: none;
      display: none;
    }

    .process-visual-badge-dot {
      animation: none;
    }

    .process-visual-frame,
    .process-visual:hover .process-visual-frame {
      transform: none;
    }

    .whatsapp-float:hover,
    .floating-cta,
    .cta-whatsapp:hover {
      transform: none;
    }
  }
}

.hero-title {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  margin: 10px 0 14px;
}

/* Fuera de @layer: gana a Tailwind (a { color: inherit } en sección gold) */
a.folio-card,
a.folio-card .folio-title,
.folio-card .folio-title {
  color: #fff;
}

.section-title {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 0.02em;
  line-height: 0.92;
  margin: 12px 0 10px;
}

.mask-headline {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 0.92;
  margin: 0 0 12px;
  color: #ffffff;
}

.cta-title {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.9;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

/* Fuera de @layer: gana a Tailwind `img { max-width:100%; height:auto }` */
.hero-bg-image,
.hero img.hero-bg-image {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.case-body h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1.12;
  font-weight: 800;
}

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  gap: 12px;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spin {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  animation: spin-ccw 1.1s linear infinite;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.45));
}

@keyframes spin-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-spin {
    animation: none;
  }
}

/*
 * Botón MENÚ + fuera de @layer para ganar a Tailwind preflight/utilities.
 * (Dentro de @layer components el padding del button se veía anulado.)
 */
button.nav-menu-btn,
.site-header .nav-menu-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  min-height: 44px !important;
  padding: 11px 16px 11px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.25) !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 160ms ease !important;
}

.site-header .nav-menu-btn-label {
  color: #ffffff !important;
}

.site-header .nav-menu-btn-plus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transition: transform 200ms ease !important;
}

button.nav-menu-btn:hover,
button.nav-menu-btn:focus-visible,
.site-header .nav-menu-btn:hover,
.site-header .nav-menu-btn:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.site-header .nav-menu-btn:hover .nav-menu-btn-plus,
.site-header .nav-menu-btn:focus-visible .nav-menu-btn-plus {
  transform: rotate(90deg) !important;
}

html.nav-open .site-header .nav-menu-btn {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

html.nav-open .site-header .nav-menu-btn-plus {
  transform: rotate(45deg) !important;
}

@media (min-width: 900px) {
  button.nav-menu-btn,
  .site-header .nav-menu-btn {
    font-size: 13px !important;
    gap: 12px !important;
    min-height: 46px !important;
    padding: 12px 18px 12px 20px !important;
  }
}

/*
 * Fuera de @layer: Tailwind CDN (h1 { font-size: inherit } e img { height: auto })
 * pisa cualquier regla dentro de @layer.
 */
h1.project-case-title,
.project-case-title {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.02em;
  margin: 0;
  max-width: 18ch;
  color: #fff;
}

.nav-brand {
  max-width: min(56vw, 202px);
  height: 53px;
  padding: 0 22px 0 16px;
}

.site-header img.brand-logo,
img.brand-logo {
  display: block;
  height: 31px;
  width: auto;
  max-width: 154px;
  object-fit: contain;
  object-position: left center;
}

.site-header.is-compact .nav-brand {
  height: 48px;
  max-width: min(52vw, 182px);
  padding: 0 20px 0 14px;
}

.site-header.is-compact img.brand-logo {
  height: 29px;
  max-width: 142px;
}

.footer-brand img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 104px;
  object-fit: contain;
  object-position: left center;
}

.nav-ed-label-wrap,
.nav-ed-label,
.nav-ed-primary .nav-ed-label,
.nav-ed-primary .nav-ed-link--all .nav-ed-label {
  font-size: clamp(1.35rem, 5.2vw, 2.15rem);
  line-height: 0.95;
}

.nav-ed-primary .nav-ed-label-wrap .nav-ed-label {
  font-size: 1em;
}

@media (min-width: 900px) {
  .nav-brand {
    height: 55px;
    max-width: 216px;
    padding: 0 24px 0 18px;
  }

  .site-header img.brand-logo,
  img.brand-logo {
    height: 34px;
    max-width: 173px;
  }

  .site-header.is-compact .nav-brand {
    height: 50px;
    max-width: 202px;
  }

  .site-header.is-compact img.brand-logo {
    height: 31px;
    max-width: 158px;
  }

  .footer-brand img {
    height: 24px;
    max-width: 112px;
  }

  .nav-ed-label-wrap,
  .nav-ed-label,
  .nav-ed-primary .nav-ed-label,
  .nav-ed-primary .nav-ed-link--all .nav-ed-label {
    font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  }
}
