/* eQuantum · Fase 05-B · Prototipo de Home (desktop, tablet y mobile).
   Dirección: "informe impreso" a dos tintas (navy + celeste) sobre papel, con el trabajo real como imagen. */

:root {
  --navy: #0A1F52;
  --navy-2: #12306E;
  --navy-deep: #061538;
  --cyan: #02AAE4;
  --cyan-2: #55C7EE;
  --cyan-ink: #08679A;
  --paper: #F3F5FA;
  --paper-2: #E8EEF6;
  --white: #FFFFFF;
  --ink: #0A1F52;
  --muted: #45566F;
  --on-dark: #FFFFFF;
  --on-dark-2: #C9D6EA;
  --line: #DCE6F2;

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display: clamp(40px, 5.4vw, 104px);
  --t-h2: clamp(32px, 3.7vw, 64px);
  --t-lead: clamp(19px, 1.45vw, 24px);
  --t-body: 17px;
  --t-small: 14px;

  --m: clamp(20px, 4.4vw, 72px);
  --gap: clamp(16px, 2vw, 32px);
  --sec: clamp(88px, 10vw, 168px);
  --r: 20px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-long: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--white); }
body { margin: 0; font-family: var(--font); font-size: var(--t-body); line-height: 1.55; color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
a, button { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.x-wrap { width: min(100% - 2 * var(--m), 1600px); margin-inline: auto; }
.x-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.x-sec { padding-block: var(--sec); }

/* ---------- Botón: píldora con flecha en círculo (una sola forma en toda la página) ---------- */
.x-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.x-btn:active { transform: scale(0.97); }
.x-btn-ico {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 999px; font-size: 17px; transition: transform 200ms var(--ease);
}
.x-btn-primary { background: var(--cyan); color: var(--navy-deep); padding-right: 11px; }
.x-btn-primary .x-btn-ico { background: var(--navy-deep); color: var(--white); }
.x-btn-ghost { border-color: currentColor; color: var(--white); background: transparent; }
.x-btn-ink { background: var(--navy); color: var(--white); padding-right: 11px; }
.x-btn-ink .x-btn-ico { background: var(--cyan); color: var(--navy-deep); }
@media (hover: hover) and (pointer: fine) {
  .x-btn-primary:hover { background: var(--cyan-2); }
  .x-btn-ink:hover { background: var(--navy-2); }
  .x-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
  .x-btn:hover .x-btn-ico { transform: translateX(3px); }
}

.x-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-decoration-color: var(--cyan); text-underline-offset: 6px;
  transition: text-underline-offset 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .x-link:hover { text-underline-offset: 9px; } }

/* ---------- Cabecera de sección: nota lateral a la izquierda del eje, título sobre el eje ---------- */
.x-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; margin-bottom: clamp(40px, 5vw, 80px); }
.x-side { grid-column: 1 / 6; padding-top: 0.7em; font-size: var(--t-small); font-weight: 600; color: var(--cyan-ink); }
.x-head-main { grid-column: 6 / 13; }
.x-head h2, .x-h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.x-head-main > p { margin-top: 20px; max-width: 46ch; font-size: var(--t-lead); line-height: 1.45; color: var(--muted); }
.x-head-act { margin-top: 28px; }
.x-dark .x-side { color: var(--cyan-2); }
@media (max-width: 1099px) {
  .x-head { grid-template-columns: 1fr; }
  .x-side, .x-head-main { grid-column: 1; }
  .x-side { padding: 0 0 14px; }
  .x-head-main > p { max-width: 40ch; }
}
.x-dark .x-head-main > p { color: var(--on-dark-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); transition: box-shadow 220ms ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgba(6, 21, 56, 0.4); } /* taste-skill-ignore: sticky bar */
.site-header .wrap { width: min(100% - 2 * var(--m), 1600px); margin-inline: auto; height: 76px; display: flex; align-items: center; gap: 24px; }
.logo-slot { display: flex; align-items: center; min-height: 44px; width: 168px; flex: none; }
.logo-slot img { width: 100%; height: auto; }
.menu { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); margin-left: auto; font-size: 16px; font-weight: 500; }
.menu a { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.menu a.is-current::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .menu a:hover::after { transform: scaleX(1); } }
.header-cta { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color 180ms ease, transform 160ms var(--ease); }
.header-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .header-cta:hover { background: var(--navy-2); } }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; transition: transform 140ms var(--ease), background-color 160ms ease; }
.menu-toggle:active { transform: scale(0.94); }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform 220ms var(--ease), background-color 120ms ease; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }


@media (max-width: 1099px) {
  .site-header .wrap { height: 64px; }
  .logo-slot { width: 144px; }
  .site-header .header-cta { display: none !important; }
  .menu-toggle { display: inline-flex; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--m) 24px; background: var(--white);
    box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(6, 21, 56, 0.35); /* taste-skill-ignore: open menu overlay */
  }
  .menu.open { display: flex; }
  .menu a { min-height: 56px; font-size: 20px; font-weight: 500; color: var(--ink) !important; box-shadow: inset 0 -1px 0 var(--line); } /* taste-skill-ignore: menu list inside the overlay */
  .menu a::after { display: none; }
  .menu a.is-current { color: var(--cyan-ink) !important; }
}

/* ---------- 1. Hero · v2: titular a todo el ancho y escena de proyectos reales en capas ---------- */
.x-hero { position: relative; background: var(--navy-deep); color: var(--on-dark); padding-top: clamp(40px, 5vw, 88px); overflow: clip; }
.x-hero-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.x-hero-title {
  grid-column: 1 / -1; grid-row: 1;
  font-size: clamp(56px, 8vw, 136px); line-height: 0.92; letter-spacing: -0.058em; font-weight: 600;
}
.x-line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.x-line > span { display: block; }
.x-hero-talk { grid-column: 1 / 5; grid-row: 2; align-self: start; margin-top: clamp(40px, 4vw, 64px); }
.x-hero-lead { font-size: clamp(19px, 1.45vw, 24px); line-height: 1.45; color: var(--on-dark-2); max-width: 28ch; }
.x-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.x-hero-names { margin-top: 40px; font-size: 15px; line-height: 1.5; color: var(--on-dark-2); max-width: 30ch; }
.x-hero-names b { color: var(--on-dark); font-weight: 600; }

/* Marcos de interfaz: ventana con la dirección real del sitio, o teléfono. */
.x-dev { position: absolute; margin: 0; overflow: hidden; background: #0E2350; }
.x-win { border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); } /* taste-skill-ignore: layered device frames float over each other */
.x-win .x-bar { display: flex; align-items: center; height: 30px; padding: 0 14px; background: #F1F4F9; color: #45566F; font-size: 13px; font-weight: 500; }
.x-win .x-bar::before { content: ""; width: 8px; height: 8px; margin-right: 10px; border-radius: 999px; background: var(--cyan); }
.x-win img { width: 100%; height: auto; }
.x-phone { border-radius: 26px; border: 5px solid #091A40; background: #091A40; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75); } /* taste-skill-ignore: layered device frames float over each other */
.x-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 21px; }

.x-stage {
  grid-column: 5 / -1; grid-row: 2; position: relative;
  height: clamp(440px, 40vw, 700px); margin-top: clamp(40px, 4vw, 64px);
}
.x-s1 { left: 0; top: 12%; width: 72%; z-index: 2; }
.x-s2 { right: 0; top: 0; width: 40%; z-index: 1; }
.x-s3 { left: 66%; top: 34%; width: 14.5%; aspect-ratio: 390 / 844; z-index: 3; }
.x-s4 { left: 83%; top: 42%; width: 14.5%; aspect-ratio: 390 / 844; z-index: 3; }
.x-stage-cap { position: absolute; left: 0; bottom: 28px; z-index: 4; font-size: 14px; color: var(--on-dark-2); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .x-s2 { animation: x-drift-a linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .x-s3, .x-s4 { animation: x-drift-b linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes x-drift-a { to { translate: 0 -6%; } }
    @keyframes x-drift-b { to { translate: 0 -18%; } }
  }
}

@media (max-width: 1099px) {
  .x-hero-title { font-size: clamp(56px, 10vw, 104px); }
  .x-hero-talk { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px; }
  .x-hero-names { display: none; }
  .x-actions { flex-direction: column; margin-top: 0; }
  .x-stage { grid-column: 1 / -1; grid-row: 3; height: 66vw; }
  .x-s1 { width: 74%; top: 10%; }
  .x-s2 { width: 42%; }
  .x-s3 { left: 64%; top: 32%; width: 16%; }
  .x-s4 { left: 82%; top: 40%; width: 16%; }
}
@media (max-width: 767px) {
  .x-hero { padding-top: 28px; }
  .x-hero-title { font-size: clamp(42px, 12.6vw, 60px); line-height: 0.95; letter-spacing: -0.055em; text-wrap: balance; }
  /* En el teléfono las líneas fluyen; el titular entra completo con un fundido. */
  .x-hero-title .x-line, .x-hero-title .x-line > span { display: inline; overflow: visible; padding: 0; margin: 0; }
  .x-hero-title .x-line:not(:last-child)::after { content: " "; }
  .js .x-hero-title { animation: x-fade-in 700ms var(--ease-out-long) both; }
  @keyframes x-fade-in { from { opacity: 0; } }
  .x-hero-talk { display: block; margin-top: 20px; }
  .x-hero-lead { font-size: 17px; line-height: 1.45; max-width: none; }
  .x-actions { margin-top: 22px; gap: 10px; }
  .x-actions .x-btn { min-height: 52px; font-size: 16px; }
  .x-actions .x-btn-ico { width: 32px; height: 32px; }
  .x-actions .x-btn { width: 100%; justify-content: space-between; }
  .x-actions .x-btn-ghost { justify-content: center; }
  .x-stage { height: 100vw; margin-top: 32px; margin-inline: calc(-1 * var(--m)); }
  .x-s1 { left: 5%; top: 0; width: 90%; }
  .x-s2 { display: none; }
  .x-win .x-bar { height: 26px; font-size: 13px; padding: 0 10px; }
  .x-s3 { left: 12%; top: 36%; width: 31%; }
  .x-s4 { left: 57%; top: 41%; width: 31%; }
  .x-phone { border-width: 4px; border-radius: 22px; }
  .x-phone img { border-radius: 18px; }
  .x-stage-cap { display: none; }
}

/* ---------- 2. Proyectos · v3: cuatro composiciones distintas, ninguna igual a la del hero ---------- */
.x-work { background: var(--white); }
.x-work .x-head { margin-bottom: clamp(32px, 3.4vw, 56px); }
.x-work .x-head h2 { font-size: clamp(40px, 4.6vw, 80px); }
.x-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 clamp(48px, 4.6vw, 72px); }
.x-filters button {
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--paper);
  color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease);
}
.x-filters button:active { transform: scale(0.96); }
.x-filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .x-filters button[aria-pressed="false"]:hover { background: var(--paper-2); } }

.x-cases { display: grid; gap: clamp(72px, 7vw, 120px); }
.x-case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.x-case[hidden] { display: none; }
.x-case-media { position: relative; }
.x-case .x-dev { transition: translate 420ms var(--ease); }
.x-c-main { background: var(--paper); box-shadow: 0 0 0 1px var(--line); } /* taste-skill-ignore: edge of a white screenshot on a white page */
.x-c-main .x-bar { background: var(--paper); }
.x-c-detail { background: var(--white); border-radius: 14px; box-shadow: 0 24px 48px -28px rgba(6, 21, 56, 0.45), 0 0 0 1px var(--line); } /* taste-skill-ignore: interface detail floats over the main screen */
.x-c-detail img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.x-c-phone { aspect-ratio: 390 / 844; }

.x-case-text .x-kind { display: block; font-size: 16px; font-weight: 600; color: var(--cyan-ink); }
.x-case-text h3 { margin-top: 12px; font-size: clamp(40px, 3.6vw, 64px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 600; }
.x-case-text p { margin-top: 18px; font-size: clamp(19px, 1.35vw, 22px); line-height: 1.45; color: var(--muted); max-width: 28ch; }
.x-case-text .x-btn { margin-top: 28px; }
.x-case-text .x-domain { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); }

/* A · Tríptico (caso abierto): pantalla, detalle y teléfono en fila, sin superponerse. */
.x-case[data-layout="triptych"] .x-case-media { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: clamp(12px, 1.4vw, 24px); }
.x-case[data-layout="triptych"] .x-dev { position: relative; }
.x-case[data-layout="triptych"] .x-c-main { flex: 0 0 58%; }
.x-case[data-layout="triptych"] .x-c-detail { flex: 1 1 0; aspect-ratio: 4 / 4.4; }
.x-case[data-layout="triptych"] .x-c-detail img { object-position: 0 0; }
.x-case[data-layout="triptych"] .x-c-phone { flex: 0 0 15.5%; }
.x-case[data-layout="triptych"] .x-case-text { grid-column: 1 / -1; grid-row: 2; margin-top: 36px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.x-case[data-layout="triptych"] .x-kind, .x-case[data-layout="triptych"] h3 { grid-column: 1 / 6; }
.x-case[data-layout="triptych"] .x-case-text p { grid-column: 6 / 10; grid-row: 1 / 3; margin: 0; }
.x-case[data-layout="triptych"] .x-btn { grid-column: 10 / 13; grid-row: 1 / 3; justify-self: end; margin: 0; }
.x-case[data-layout="triptych"] .x-domain { display: none; }

/* B · Pantalla con detalle encima (sin teléfono). */
.x-case[data-layout="detail"] .x-case-media { grid-column: 1 / 8; aspect-ratio: 16 / 11.4; }
.x-case[data-layout="detail"] .x-case-text { grid-column: 9 / 13; }
.x-case[data-layout="detail"] .x-dev { position: absolute; }
.x-case[data-layout="detail"] .x-c-main { left: 0; top: 0; width: 86%; }
.x-case[data-layout="detail"] .x-c-detail { right: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 3; }

/* C · Pantalla con teléfono, espejada. */
.x-case[data-layout="phone"] .x-case-media { grid-column: 6 / 13; grid-row: 1; aspect-ratio: 16 / 11.4; }
.x-case[data-layout="phone"] .x-case-text { grid-column: 1 / 5; grid-row: 1; }
.x-case[data-layout="phone"] .x-dev { position: absolute; }
.x-case[data-layout="phone"] .x-c-main { right: 0; top: 0; width: 86%; }
.x-case[data-layout="phone"] .x-c-phone { left: 0; bottom: 0; width: 20%; }

/* D · Pareja final, a menor escala. */
.x-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.x-case.is-pair { grid-template-columns: 1fr; row-gap: 28px; }
.x-case.is-pair[data-layout] .x-case-media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 11.2; }
.x-case.is-pair[data-layout] .x-case-text { grid-column: 1; grid-row: 2; }
.x-case.is-pair .x-dev { position: absolute; }
.x-case.is-pair .x-c-main { left: 0; right: auto; top: 0; width: 86%; }
.x-case.is-pair .x-c-phone { left: auto; right: 0; bottom: 0; width: 21%; }
.x-case.is-pair:nth-child(2) .x-c-main { left: auto; right: 0; }
.x-case.is-pair:nth-child(2) .x-c-phone { right: auto; left: 0; }
.x-case.is-pair h3 { font-size: clamp(36px, 2.8vw, 52px); }
.x-case.is-pair:nth-child(2) { margin-top: clamp(48px, 5vw, 96px); }

@media (hover: hover) and (pointer: fine) {
  .x-case:hover .x-c-main { translate: 0 -6px; }
  .x-case:hover .x-c-detail { translate: 0 -12px; }
  .x-case:hover .x-c-phone { translate: 0 -16px; }
}
.x-work-foot { margin-top: clamp(64px, 6vw, 104px); }

@media (max-width: 1099px) {
  .x-case { grid-template-columns: 1fr; row-gap: 32px; }
  .x-case .x-case-media, .x-case .x-case-text { grid-column: 1 !important; }
  .x-case .x-case-media { grid-row: 1 !important; }
  .x-case[data-layout] .x-case-text { grid-row: 2 !important; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: end; margin-top: 0; }
  .x-case[data-layout] .x-case-text .x-kind, .x-case[data-layout] .x-case-text h3 { grid-column: 1; }
  .x-case[data-layout] .x-case-text p { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .x-case[data-layout] .x-case-text .x-btn { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 24px; }
  .x-case[data-layout] .x-case-text .x-domain { display: none; }
  .x-pair { grid-template-columns: 1fr; gap: clamp(72px, 7vw, 120px); }
  .x-case.is-pair:nth-child(2) { margin-top: 0; }
}
@media (max-width: 767px) {
  .x-cases, .x-pair { gap: 72px; }
  .x-case { row-gap: 24px; }
  .x-win .x-bar { height: 26px; font-size: 13px; }
  .x-case[data-layout] .x-case-text { display: block; }
  .x-case[data-layout] .x-case-text p { margin-top: 12px; }
  .x-case-text h3 { font-size: clamp(36px, 10.6vw, 46px); margin-top: 8px; }
  .x-case-text p { margin-top: 12px; font-size: 18px; max-width: none; }
  .x-case[data-layout] .x-case-text .x-btn { width: 100%; justify-content: space-between; margin-top: 20px; }
  .x-filters { margin-bottom: 40px; }
  /* Variaciones sutiles entre casos en una sola columna. */
  .x-case[data-layout="triptych"] .x-case-media { display: grid; grid-template-columns: 1.55fr 1fr; align-items: end; gap: 10px; }
  .x-case[data-layout="triptych"] .x-c-main { grid-column: 1 / -1; }
  .x-case[data-layout="triptych"] .x-c-detail { aspect-ratio: 1 / 1.08; }
  .x-case[data-layout="triptych"] .x-c-phone { width: 100%; }
  .x-case[data-layout="detail"] .x-case-media { aspect-ratio: 1 / 0.86; }
  .x-case[data-layout="detail"] .x-c-main { width: 100%; }
  .x-case[data-layout="detail"] .x-c-detail { width: 56%; }
  .x-case[data-layout="phone"] .x-case-media { aspect-ratio: 1 / 0.96; }
  .x-case[data-layout="phone"] .x-c-main { width: 100%; }
  .x-case[data-layout="phone"] .x-c-phone { left: 4%; width: 32%; }
  .x-case.is-pair .x-case-media { aspect-ratio: 1 / 0.94; }
  .x-case.is-pair .x-c-main { width: 100%; }
  .x-case.is-pair[data-layout] .x-c-phone { left: auto; right: 4%; width: 31%; }
}

  @media (max-width: 767px) { .x-case.is-pair[data-layout]:nth-child(2) .x-c-phone { right: auto; left: 4%; } }
/* ---------- 3. Servicios: mosaico de piezas distintas, en campo navy ---------- */
.x-services { background: var(--navy); color: var(--on-dark); }
.x-mosaic-s { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 96px; gap: 8px; }
.x-ms { border-radius: var(--r); padding: clamp(22px, 2vw, 32px); overflow: hidden; }
.x-ms-head { grid-column: 1 / 8; grid-row: 1 / 4; padding-left: 0; padding-top: 0; }
.x-ms-head h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; max-width: 12ch; }
.x-ms-head p { margin-top: 20px; max-width: 40ch; font-size: var(--t-lead); line-height: 1.45; color: var(--on-dark-2); }
.x-ms-pic { grid-column: 8 / 13; grid-row: 1 / 7; padding: 0; position: relative; background: var(--navy-2); }
.x-ms-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.x-ms-pic figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(6, 21, 56, 0.86); font-size: var(--t-small); }
.x-ms-a1 { grid-column: 1 / 5; grid-row: 4 / 7; background: var(--cyan); color: var(--navy-deep); }
.x-ms-a2 { grid-column: 5 / 8; grid-row: 4 / 7; background: var(--white); color: var(--navy); }
.x-ms-a3 { grid-column: 1 / 7; grid-row: 7 / 9; background: var(--navy-2); }
.x-ms-a4 { grid-column: 7 / 13; grid-row: 7 / 9; background: var(--paper); color: var(--navy); }
.x-ms h3 { font-size: clamp(24px, 1.9vw, 32px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.x-ms ul { display: grid; gap: 6px; margin-top: 18px; font-size: 19px; line-height: 1.35; }
.x-ms-a3 ul, .x-ms-a4 ul { display: block; columns: 2; column-gap: 24px; }
.x-ms-a3 li, .x-ms-a4 li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 1099px) {
  .x-mosaic-s { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .x-ms-head { grid-column: 1 / -1; grid-row: auto; padding: 0 0 24px; }
  .x-ms-pic { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .x-ms-a1, .x-ms-a2, .x-ms-a3, .x-ms-a4 { grid-column: auto; grid-row: auto; min-height: 240px; }
  .x-ms-a3 ul, .x-ms-a4 ul { columns: 1; }
}
@media (max-width: 767px) {
  .x-mosaic-s { grid-template-columns: 1fr; }
  .x-ms-pic { aspect-ratio: 4 / 3; }
  .x-ms-a1, .x-ms-a2, .x-ms-a3, .x-ms-a4 { min-height: 0; }
  .x-ms ul { font-size: 18px; }
}

/* ---------- 4. Problemas: pestañas a la izquierda, respuesta en franjas a la derecha ---------- */
.x-problems { background: var(--white); }
.x-tabs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.x-tablist { grid-column: 1 / 6; display: grid; gap: 6px; align-content: start; }
.x-tab {
  display: flex; align-items: center; min-height: 72px; padding: 16px 22px; border: 0; border-radius: 14px;
  background: var(--paper); color: var(--ink); text-align: left; font-size: 18px; line-height: 1.3; font-weight: 500;
  cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease);
}
.x-tab:active { transform: scale(0.985); }
.x-tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .x-tab[aria-selected="false"]:hover { background: var(--paper-2); } }
.x-panels { grid-column: 6 / 13; }
.x-panel { display: grid; gap: 6px; }
.x-panel + .x-panel { margin-top: 24px; }
.x-band { border-radius: 14px; padding: 26px 28px; background: var(--paper); }
.x-band:nth-child(odd) { background: var(--paper-2); }
.x-panel h3 { font-size: clamp(26px, 2.2vw, 38px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; padding: 0 0 18px; }
.x-band-k { font-size: var(--t-small); font-weight: 600; color: var(--cyan-ink); }
.x-band-v { margin-top: 6px; font-size: var(--t-lead); line-height: 1.45; }
.js .x-tabs-on .x-panel[hidden] { display: none; }
.js .x-tabs-on .x-panel + .x-panel { margin-top: 0; }
.x-panel-in { animation: x-panel-in 260ms var(--ease) both; }
@keyframes x-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1099px) {
  .x-tablist { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
  .x-panels { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  /* En el teléfono no hay pestañas: cada situación con su respuesta, una debajo de otra. */
  .x-tablist { display: none; }
  .js .x-tabs-on .x-panel[hidden] { display: grid; }
  .js .x-tabs-on .x-panel + .x-panel, .x-panel + .x-panel { margin-top: 40px; }
  .x-panel h3 { font-size: 26px; padding-bottom: 10px; }
  .x-band { padding: 20px; }
  .x-band-v { font-size: 18px; }
}

/* ---------- 5. Paquetes · v4: sección comercial principal, justo después del hero ---------- */
.x-plans { background: var(--paper); }
.x-plans .x-head h2 { font-size: clamp(44px, 5vw, 88px); }
.x-plan-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.x-plan { grid-column: span 2; }
.x-plan:nth-child(4) { grid-column: span 2; }
.x-plan-360 { grid-column: span 4; }
.x-plan-card {
  display: flex; flex-direction: column; height: 100%; padding: clamp(28px, 2.4vw, 40px);
  border-radius: var(--r); background: var(--white); color: var(--ink);
  transition: translate 300ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .x-plan-card:hover { translate: 0 -4px; } }
.x-plan-id { display: flex; gap: 10px; font-size: 16px; font-weight: 600; color: var(--cyan-ink); }
.x-plan-id b { font-variant-numeric: tabular-nums; }
.x-plan-name { margin-top: 14px; font-size: clamp(38px, 3.2vw, 56px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 600; }
.x-plan-desc { margin-top: 12px; font-size: clamp(18px, 1.3vw, 21px); line-height: 1.4; color: var(--muted); max-width: 24ch; }
.x-plan-body { display: flex; flex-direction: column; flex: 1; }
.x-plan-benefits { display: grid; gap: 10px; margin: 28px 0 0; font-size: 17px; line-height: 1.35; font-weight: 500; }
.x-plan-benefits li { display: flex; align-items: center; gap: 12px; }
.x-plan-benefits svg { flex: none; width: 20px; height: 20px; color: #0288BB; }
.x-plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 32px; }
.x-plan-consult {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 6px; border: 0; background: none;
  color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--cyan); text-underline-offset: 6px;
  transition: text-underline-offset 180ms var(--ease), transform 140ms var(--ease);
}
.x-plan-consult:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .x-plan-consult:hover { text-underline-offset: 9px; } }

/* EQ 360: campo navy horizontal que cierra la fila. */
.x-plan-360 .x-plan-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 56px); background: var(--navy); color: var(--on-dark); }
.x-plan-360 .x-plan-id { color: var(--cyan-2); }
.x-plan-360 .x-plan-name { font-size: clamp(56px, 5.6vw, 104px); letter-spacing: -0.055em; }
.x-plan-360 .x-plan-desc { color: var(--on-dark-2); }
.x-plan-360 .x-plan-benefits { margin-top: 0; font-size: 18px; }
.x-plan-360 .x-plan-benefits svg { color: var(--cyan); }
.x-plan-360 .x-btn-ink { background: var(--cyan); color: var(--navy-deep); }
.x-plan-360 .x-btn-ink .x-btn-ico { background: var(--navy-deep); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .x-plan-360 .x-btn-ink:hover { background: var(--cyan-2); } }
.x-plan-360 .x-plan-consult { color: var(--on-dark); }

.x-plans-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 28px; font-size: 15px; color: var(--muted); }
.x-plans-note span { max-width: 70ch; }

@media (max-width: 1279px) and (min-width: 1100px) {
  .x-plan-actions .x-btn { padding-left: 20px; }
}
@media (max-width: 1099px) {
  .x-plan-list { grid-template-columns: 1fr 1fr; }
  .x-plan, .x-plan:nth-child(4) { grid-column: auto; }
  .x-plan-360 { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .x-plan-list { grid-template-columns: 1fr; gap: 12px; }
  .x-plan-card { padding: 26px 22px 22px; }
  .x-plan:nth-child(3) .x-plan-card, .x-plan:nth-child(4) .x-plan-card { background: #E4EEF8; }
  .x-plan-name { font-size: clamp(34px, 9.6vw, 42px); }
  .x-plan-desc { font-size: 18px; max-width: none; }
  .x-plan-benefits { margin-top: 20px; }
  .x-plan-actions { padding-top: 24px; flex-direction: column; align-items: stretch; gap: 4px; }
  .x-plan-actions .x-btn { justify-content: space-between; }
  .x-plan-consult { justify-content: center; min-height: 48px; }
  .x-plan-360 { margin-top: 8px; }
  .x-plan-360 .x-plan-card { grid-template-columns: 1fr; row-gap: 24px; padding: 30px 22px 22px; }
  .x-plan-360 .x-plan-name { font-size: clamp(48px, 13vw, 60px); }
  .x-plan-360 .x-plan-benefits { font-size: 17px; }
  .x-plans-note { font-size: 14px; }
}

/* ¿No sabés qué paquete elegir? (bloque de producción, restilizado) */
.help { background: var(--paper); padding-bottom: var(--sec); }
.help .wrap { width: min(100% - 2 * var(--m), 1600px); margin-inline: auto; }
.help-box { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; padding: clamp(28px, 3vw, 48px); border-radius: var(--r); background: var(--white); }
.help-icon { display: none; }
.help-box > div:nth-child(2) { grid-column: 1 / 10; }
.help-box h2 { font-size: clamp(26px, 2.4vw, 40px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.help-box p { margin-top: 10px; font-size: var(--t-body); color: var(--muted); max-width: 56ch; }
.needs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.needs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, transform 140ms var(--ease); }
.needs button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .needs button:hover { border-color: var(--navy); } }
.help-box > .btn { grid-column: 10 / 13; justify-self: end; }
.btn.solid { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 180ms ease, transform 160ms var(--ease); }
.btn.solid:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn.solid:hover { background: var(--navy-2); } }
@media (max-width: 1099px) {
  .help-box > div:nth-child(2), .help-box > .btn { grid-column: 1 / -1; justify-self: stretch; }
}

/* ---------- 6. Metodología: una columna de lectura ---------- */
.x-method { background: var(--white); }
.x-method .x-grid { align-items: start; }
.x-method-head { grid-column: 1 / 6; position: sticky; top: 120px; }
.x-method-head p { margin-top: 20px; max-width: 32ch; font-size: var(--t-lead); line-height: 1.45; color: var(--muted); }
.x-steps { grid-column: 6 / 12; display: grid; gap: clamp(32px, 3.4vw, 56px); counter-reset: none; }
.x-steps p { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.45; color: var(--muted); }
.x-steps strong { color: var(--ink); font-weight: 600; }
@media (max-width: 1099px) {
  .x-method-head { grid-column: 1 / -1; position: static; margin-bottom: 48px; }
  .x-steps { grid-column: 1 / -1; }
}

/* ---------- 7. Confianza: clientes, base y seguridad ---------- */
.x-about { background: var(--navy-deep); color: var(--on-dark); }
.x-about-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.x-facts { grid-column: 1 / 4; display: grid; gap: 22px; align-content: start; }
.x-facts dt { font-size: var(--t-small); color: var(--on-dark-2); }
.x-facts dd { margin-top: 4px; font-size: 17px; font-weight: 500; }
.x-facts a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.x-facts dd { margin-top: 0; }
.x-about-main { grid-column: 6 / 13; }
.x-about-main p { margin-top: 24px; font-size: clamp(22px, 1.9vw, 32px); line-height: 1.35; letter-spacing: -0.015em; color: var(--on-dark-2); max-width: 32ch; }
.x-clients { grid-column: 6 / 13; margin-top: clamp(64px, 7vw, 120px); display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.x-clients li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14); } /* taste-skill-ignore: two-column name/domain table */
.x-clients b { font-size: clamp(19px, 1.5vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.x-clients a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--on-dark-2); text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .x-clients a:hover { color: var(--cyan-2); } }
.x-clients-k { grid-column: 1 / 4; margin-top: clamp(64px, 7vw, 120px); padding-top: 22px; font-size: var(--t-small); color: var(--on-dark-2); }
@media (max-width: 1099px) {
  .x-facts { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 40px; margin-top: 48px; }
  .x-about-main { grid-column: 1 / -1; grid-row: 1; }
  .x-clients-k { grid-column: 1 / -1; margin-top: 64px; padding-top: 0; }
  .x-clients { grid-column: 1 / -1; margin-top: 12px; }
}
@media (max-width: 767px) {
  .x-facts { grid-template-columns: 1fr; }
  .x-clients { grid-template-columns: 1fr; }
  .x-about-main p { font-size: 21px; }
}

.x-security { background: var(--cyan); color: var(--navy-deep); }
.x-security .x-grid { align-items: end; }
.x-security-title { grid-column: 1 / 8; }
.x-security-title .x-side { color: var(--navy-deep); padding: 0 0 18px; }
.x-security-title h2 { font-size: clamp(48px, 7vw, 128px); line-height: 0.95; letter-spacing: -0.055em; font-weight: 600; }
.x-security-panel { grid-column: 8 / 13; display: grid; gap: 24px; justify-items: start; }
.x-security-panel p { font-size: var(--t-lead); line-height: 1.45; }
.btn.light { display: inline-flex; align-items: center; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--navy-deep); color: var(--white); font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 180ms ease, transform 160ms var(--ease); }
.btn.light:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn.light:hover { background: var(--navy); } }
@media (max-width: 1099px) {
  .x-security-title, .x-security-panel { grid-column: 1 / -1; }
  .x-security-panel { margin-top: 28px; }
  .x-security-panel .btn { width: 100%; justify-content: center; }
}

/* ---------- 8. Blog · v4: segunda prioridad, una nota principal y tres en lista ---------- */
.blog-home { background: var(--white); padding-block: var(--sec); }
.blog-home > .wrap { width: min(100% - 2 * var(--m), 1600px); margin-inline: auto; }
.blog-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.blog-head > div:first-child { grid-column: 1 / 8; }
.blog-head .eyebrow { display: none; } /* taste-skill-ignore: hides the production label */
.blog-head h2 { font-size: clamp(40px, 4.4vw, 80px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; text-wrap: balance; }
.blog-head-aside { grid-column: 9 / 13; display: grid; gap: 14px; justify-items: start; }
.blog-head-aside p { font-size: clamp(18px, 1.3vw, 21px); line-height: 1.45; color: var(--muted); }
.blog-all { display: inline-flex; align-items: center; min-height: 48px; font-size: 17px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--cyan); text-underline-offset: 6px; transition: text-underline-offset 180ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .blog-all:hover { text-underline-offset: 9px; } }

.blog-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); column-gap: var(--gap); row-gap: 20px; }
.blog-card a { display: grid; text-decoration: none; color: var(--ink); }
.blog-art { overflow: hidden; border-radius: 14px; background: var(--paper); }
.blog-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.blog-copy { display: grid; gap: 8px; align-content: start; }
.blog-category { font-size: 15px; font-weight: 600; color: var(--cyan-ink); }
.blog-copy h3 { font-size: clamp(19px, 1.35vw, 22px); line-height: 1.28; letter-spacing: -0.015em; font-weight: 600; }
.blog-read { font-size: 15px; font-weight: 600; color: var(--muted); }

/* Nota principal: imagen amplia y titular grande. */
.blog-card.blog-feature { grid-column: 1 / 8; grid-row: 1 / 4; }
.blog-card.blog-feature a { gap: 24px; }
.blog-card.blog-feature .blog-art { aspect-ratio: 16 / 9.4; }
.blog-card.blog-feature h3 { font-size: clamp(28px, 2.4vw, 42px); line-height: 1.1; letter-spacing: -0.035em; max-width: 24ch; }
/* Las otras tres: miniatura y titular, en lista. */
.blog-card:not(.blog-feature) { grid-column: 8 / 13; }
.blog-card:not(.blog-feature) a { grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 20px; align-items: start; padding: 16px; margin: -16px; border-radius: 18px; transition: background-color 200ms ease; }
.blog-card:not(.blog-feature) .blog-art { aspect-ratio: 4 / 3; }
@media (hover: hover) and (pointer: fine) {
  .blog-card a:hover .blog-art img { transform: scale(1.04); }
  .blog-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .blog-card:not(.blog-feature) a:hover { background: var(--paper); }
}
.blog-card a:active { transform: scale(0.99); }
.blog-disclaimer { margin-top: 32px; font-size: 14px; color: var(--muted); }

@media (max-width: 1099px) {
  .blog-head > div:first-child, .blog-head-aside { grid-column: 1 / -1; }
  .blog-head-aside { margin-top: 18px; }
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; row-gap: 32px; }
  .blog-card.blog-feature { grid-column: 1 / -1; grid-row: auto; }
  .blog-card:not(.blog-feature) { grid-column: auto; }
  .blog-card:not(.blog-feature) a { grid-template-columns: 1fr; gap: 14px; padding: 0; margin: 0; }
  .blog-card:not(.blog-feature) .blog-art { aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .blog-card.blog-feature a { gap: 18px; }
  .blog-card.blog-feature h3 { font-size: 26px; }
  .blog-card:not(.blog-feature) a { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .blog-card:not(.blog-feature) .blog-art { aspect-ratio: 1 / 1; border-radius: 12px; }
  .blog-card:not(.blog-feature) h3 { font-size: 17px; }
  .blog-card:not(.blog-feature) .blog-read { display: none; }
}

/* ---------- 9. Contacto (bloque y formulario de producción, restilizados) ---------- */
#contacto { background: var(--paper); padding-block: var(--sec); }
#contacto .wrap.contact { width: min(100% - 2 * var(--m), 1600px); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
#contacto .contact > div:first-child { grid-column: 1 / 6; }
#contacto .eyebrow { display: none; } /* taste-skill-ignore: hides the production label */
#contacto h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.contact-cta { display: grid; gap: 10px; margin-top: 40px; }
.contact-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 20px 22px; border-radius: 14px; background: var(--white); }
.contact-line span { grid-column: 1 / -1; font-size: var(--t-small); color: var(--muted); }
.contact-line strong { font-size: clamp(18px, 1.4vw, 22px); font-weight: 600; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.copy-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 160ms ease, transform 140ms var(--ease); }
.copy-btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { border-color: var(--navy); } }
.contact-line .btn.wa { grid-column: 1 / -1; margin-top: 10px; justify-self: start; }
.demo { grid-column: 7 / 13; display: grid; gap: 16px; padding: clamp(24px, 3vw, 44px); border-radius: var(--r); background: var(--white); }
.demo-badge { font-size: var(--t-small); font-weight: 600; color: var(--cyan-ink); }
.demo h3 { font-size: clamp(24px, 2vw, 34px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.selection { font-size: 15px; color: var(--muted); }
.selection strong { color: var(--ink); }
.demo .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.demo input, .demo select, .demo textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #C9D6E6; background: var(--white); font-size: 16px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.demo textarea { min-height: 120px; resize: vertical; }
.demo input:focus, .demo select:focus, .demo textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(2, 170, 228, 0.35); } /* taste-skill-ignore: form field focus ring */
.demo button[type="submit"] { width: 100%; min-height: 56px; margin-top: 4px; }
.form-status { min-height: 1.4em; font-size: 15px; font-weight: 600; color: var(--cyan-ink); }
.form-note { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1099px) {
  #contacto .contact > div:first-child, .demo { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .demo .row { grid-template-columns: 1fr; }
  .contact-line { grid-template-columns: 1fr; }
  .contact-line strong { font-size: 18px; overflow-wrap: normal; }
  .copy-btn { justify-self: start; margin-top: 8px; }
  .contact-line .btn.wa { width: 100%; }
}

/* ---------- 10. Footer: el contacto como titular ---------- */
.x-foot { background: var(--navy); color: var(--on-dark); padding-top: clamp(56px, 6vw, 96px); padding-bottom: 32px; }
.x-foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.x-foot-brand { grid-column: 1 / 5; display: grid; gap: 18px; align-content: start; }
.x-foot-brand a { justify-self: start; display: block; padding: 14px 18px; border-radius: 14px; background: var(--white); }
.x-foot-brand img { width: 168px; }
.x-foot-brand p { font-size: 16px; color: var(--on-dark-2); max-width: 36ch; }
.x-foot-col { grid-column: span 2; }
.x-foot-col:first-of-type { grid-column: 6 / 8; }
.x-foot-col.wide { grid-column: span 3; }
.x-foot-col h4 { font-size: var(--t-small); font-weight: 600; color: var(--cyan-2); margin-bottom: 10px; }
.x-foot-col a, .x-foot-col li { display: flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: none; color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .x-foot-col a:hover { color: var(--cyan-2); } }
.x-foot-mail { display: block; margin-top: clamp(72px, 9vw, 160px); font-size: clamp(34px, 6.6vw, 128px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; transition: color 200ms ease; }
.x-foot-mail span { display: inline-block; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .x-foot-mail:hover { color: var(--cyan-2); } }
.x-foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 56px; font-size: var(--t-small); color: var(--on-dark-2); }
@media (max-width: 1099px) {
  .x-foot-brand { grid-column: 1 / -1; }
  .x-foot-col, .x-foot-col:first-of-type, .x-foot-col.wide { grid-column: span 4; }
}
@media (max-width: 767px) {
  .x-foot-col, .x-foot-col:first-of-type, .x-foot-col.wide { grid-column: 1 / -1; }
  .x-foot-mail { font-size: clamp(24px, 8.8vw, 46px); }
}

/* Bloques de producción que la Home no muestra (siguen disponibles para /paquetes/<slug>/ y el JS). */
body[data-page="inicio"] #paquetes, #detail:not([open]) { display: none; }

/* ---------- Entrada de secciones (solo con JS; sin JS todo queda visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity 640ms var(--ease-out-long), transform 640ms var(--ease-out-long); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }
  .js .x-hero-title .x-line > span { transform: translateY(105%); animation: x-rise 900ms var(--ease-out-long) forwards; }
  .js .x-hero-title .x-line:nth-child(2) > span { animation-delay: 110ms; }
  .js .x-hero-title .x-line:nth-child(3) > span { animation-delay: 220ms; }
  .js .x-hero-talk { opacity: 0; transform: translateY(16px); animation: x-fade 700ms var(--ease-out-long) 420ms forwards; }
  .js .x-stage .x-dev { opacity: 0; transform: translateY(48px); animation: x-fade 900ms var(--ease-out-long) forwards; }
  .js .x-s2 { animation-delay: 380ms; }
  .js .x-s1 { animation-delay: 480ms; }
  .js .x-s3 { animation-delay: 620ms; }
  .js .x-s4 { animation-delay: 720ms; }
  .js .x-case .x-dev { opacity: 0; transform: translateY(40px); }
  .js .x-case.is-in .x-dev { animation: x-fade 800ms var(--ease-out-long) forwards; }
  .js .x-case.is-in .x-c-detail { animation-delay: 120ms; }
  .js .x-case.is-in .x-c-phone { animation-delay: 220ms; }
  @keyframes x-rise { to { transform: none; } }
  @keyframes x-fade { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .x-btn:active, .x-tab:active, .x-plan > a:active { transform: none; }
}
.x-work .x-side { font-size: 16px; }

/* Proyectos al final del recorrido: misma composición aprobada, a menor escala. */
.x-work .x-head h2 { font-size: clamp(36px, 3.8vw, 64px); }
.x-work .x-cases { width: min(100% - 2 * var(--m), 1360px); gap: clamp(64px, 6vw, 104px); }
.x-case-text h3 { font-size: clamp(32px, 2.8vw, 48px); }
.x-case[data-layout="triptych"] .x-case-media { gap: clamp(10px, 1vw, 18px); }
.x-case.is-pair h3 { font-size: clamp(30px, 2.4vw, 42px); }
@media (max-width: 767px) { .x-case-text h3 { font-size: clamp(32px, 9.4vw, 40px); } }

/* ==========================================================================
   V5 · Optimización: escala tipográfica más moderada en desktop y
   recorrido mobile compacto (carruseles táctiles y acordeones).
   ========================================================================== */
:root {
  --sec: clamp(72px, 7.4vw, 128px);
  --t-h2: clamp(32px, 3.2vw, 54px);
}

/* ---------- Escala de títulos ---------- */
.x-hero-title { font-size: clamp(48px, 6.6vw, 112px); }
.x-plans .x-head h2, .blog-head h2 { font-size: clamp(36px, 3.8vw, 62px); }
.x-work .x-head h2 { font-size: var(--t-h2); }
.x-security-title h2 { font-size: clamp(44px, 5vw, 84px); }
.x-head { margin-bottom: clamp(32px, 3.6vw, 60px); }
@media (max-width: 1099px) and (min-width: 768px) { .x-hero-title { font-size: clamp(48px, 8.4vw, 88px); } }

/* ---------- Paquetes: títulos y alturas más contenidos ---------- */
.x-plan-card { padding: clamp(24px, 2vw, 32px); }
.x-plan-name { margin-top: 10px; font-size: clamp(30px, 2.4vw, 40px); }
.x-plan-desc { margin-top: 8px; font-size: clamp(17px, 1.2vw, 19px); }
.x-plan-benefits { margin-top: 20px; font-size: 16px; gap: 8px; }
.x-plan-actions { padding-top: 24px; }
.x-plan-360 .x-plan-name { font-size: clamp(44px, 4.2vw, 72px); }
.x-plan-360 .x-plan-benefits { font-size: 17px; }

/* ---------- Servicios, Problemas y Metodología más compactos ---------- */
@media (min-width: 1100px) { .x-mosaic-s { grid-auto-rows: 84px; } }
.x-ms ul { font-size: 18px; margin-top: 14px; }
.x-tab { min-height: 60px; padding: 14px 20px; font-size: 17px; }
.x-band { padding: 22px 24px; }
.x-panel h3 { padding-bottom: 14px; font-size: clamp(24px, 1.9vw, 32px); }
.x-steps { gap: clamp(18px, 1.8vw, 28px); }
.x-steps li { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.45; color: var(--muted); }

/* Botones de acordeón: en desktop se leen como títulos (sin chevron ni resumen). */
.x-acc-btn { display: inline; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: default; }
.x-acc-sum, .x-acc-chev { display: none; }
.x-step-h, .x-steps .x-acc-panel { display: inline; font: inherit; }
.x-step-h .x-acc-btn { color: var(--ink); font-weight: 600; }

/* ---------- Footer: correo a una escala razonable ---------- */
.x-foot { padding-top: clamp(48px, 5vw, 80px); }
.x-foot-mail { margin-top: clamp(48px, 5vw, 88px); font-size: clamp(28px, 3.4vw, 56px); letter-spacing: -0.04em; }
.x-foot-legal { margin-top: 40px; }

/* Enlaces "Ver todos" y controles de carrusel: solo en el teléfono. */
.x-only-m, .x-car-ctrl { display: none; }

@media (max-width: 767px) {
  /* ---------- Hero: mismo diseño, espacios más compactos ---------- */
  .x-hero { padding-top: 24px; }
  .x-hero-talk { margin-top: 18px; }
  .x-actions { margin-top: 20px; }
  .x-stage { margin-top: 28px; }

  .x-head { margin-bottom: 28px; }
  .x-head-act { margin-top: 18px; }
  .x-only-m { display: inline-flex; margin-top: 12px; }
  .x-on-dark { color: var(--on-dark); }

  /* ---------- Carrusel genérico: desplazamiento nativo con snap ---------- */
  [data-carousel] {
    display: flex !important; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: var(--m); scrollbar-width: none;
    margin-inline: calc(-1 * var(--m)); padding-inline: var(--m);
    width: auto !important;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel]:focus-visible { outline-offset: -3px; }
  [data-carousel] > * { scroll-snap-align: start; scroll-snap-stop: always; }
  .x-car-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
  .x-car-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--paper-2); color: var(--ink); font-size: 18px; cursor: pointer; transition: transform 140ms var(--ease), opacity 160ms ease; }
  .x-car-btn:active { transform: scale(0.94); }
  .x-car-btn:disabled { opacity: 0.35; cursor: default; }
  .x-dots { display: flex; align-items: center; justify-content: center; flex: 1; }
  .x-dot { width: 32px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .x-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #B9C7D9; transition: width 220ms var(--ease), background-color 220ms ease; }
  .x-dot[aria-current="true"]::before { width: 22px; background: var(--navy); }
  .x-dark .x-car-btn { background: rgba(255, 255, 255, 0.12); color: var(--white); }

  /* Paquetes: un paquete por vez. */
  .x-plan-list > .x-plan { flex: 0 0 86%; margin: 0; }
  .x-plan-list > .x-plan-360 { margin-top: 0; }
  .x-plan-card { padding: 24px 22px 20px; }
  .x-plan-name { font-size: 36px; }
  .x-plan-360 .x-plan-card { row-gap: 18px; padding: 24px 22px 20px; }
  .x-plan-360 .x-plan-name { font-size: 48px; }
  .x-plans .x-only-m { margin-top: 16px; }
  .x-plans-note { margin-top: 20px; }

  /* Blog: nota principal fija y las demás en carril. */
  .blog-home { padding-block: 72px; }
  .blog-head { margin-bottom: 24px; }
  .blog-grid { row-gap: 18px; }
  .blog-rail > .blog-card { flex: 0 0 76%; }
  .blog-rail .blog-card a { grid-template-columns: 1fr; gap: 12px; padding: 0; margin: 0; }
  .blog-rail .blog-card .blog-art { aspect-ratio: 16 / 10; border-radius: 12px; }
  .blog-rail .blog-card h3 { font-size: 17px; }
  .blog-rail .blog-card .blog-read { display: block; }
  .blog-disclaimer { margin-top: 18px; }

  /* ---------- Acordeones ---------- */
  .x-acc-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
    min-height: 56px; cursor: pointer; user-select: none; -webkit-user-select: none;
  }
  .x-acc-btn > span:first-child { flex: 1; }
  .x-acc-chev { display: block; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 220ms var(--ease); }
  .x-acc-btn[aria-expanded="true"] .x-acc-chev { transform: translateY(2px) rotate(-135deg); }
  .x-acc-panel[hidden] { display: none !important; }
  .x-acc-in { animation: x-acc-in 220ms var(--ease) both; }
  @keyframes x-acc-in { from { opacity: 0; transform: translateY(-4px); } }

  /* Servicios: título y resumen; la lista se despliega. */
  .x-services { padding-block: 72px; }
  .x-mosaic-s { gap: 8px; }
  .x-ms-head { padding-bottom: 16px; }
  .x-ms-pic { aspect-ratio: 16 / 9; }
  .x-ms-a1, .x-ms-a2, .x-ms-a3, .x-ms-a4 { padding: 6px 20px; }
  .x-ms h3 .x-acc-btn { flex-wrap: wrap; row-gap: 2px; padding: 12px 0; }
  .x-ms h3 .x-acc-btn > span:first-child { flex: 1 1 calc(100% - 40px); }
  .x-acc-sum { display: block; order: 3; flex-basis: 100%; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.35; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .x-acc-btn[aria-expanded="true"] .x-acc-sum { display: none; }
  .x-ms .x-acc-panel ul { margin: 0; padding: 0 0 16px; }
  .x-services .x-only-m { margin-top: 20px; }

  /* Problemas: una situación abierta por vez. */
  .x-problems { padding-block: 72px; }
  .js .x-tabs-on .x-panel + .x-panel, .x-panel + .x-panel { margin-top: 8px; }
  .x-panel { gap: 0; padding: 0 18px; border-radius: 14px; background: var(--paper); }
  .x-panel h3 { padding: 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
  .x-panel h3 .x-acc-btn { padding: 12px 0; }
  .x-panel .x-acc-panel { display: grid; gap: 6px; padding-bottom: 16px; }
  .x-panel .x-band { padding: 16px; background: var(--white); }
  .x-panel .x-band-v { font-size: 17px; }

  /* Metodología: las cuatro etapas como resumen, el detalle se despliega. */
  .x-method { padding-block: 72px; }
  .x-method-head { margin-bottom: 20px; }
  .x-steps { gap: 0; }
  .x-steps li { padding: 0 18px; border-radius: 14px; background: var(--paper); font-size: 18px; }
  .x-steps li + li { margin-top: 8px; }
  .x-step-h, .x-steps .x-acc-panel { display: block; }
  .x-step-h .x-acc-btn { font-size: 19px; }
  .x-steps .x-acc-panel { padding: 0 0 16px; font-size: 17px; }

  /* Seguridad: sin alargar. */
  .x-security { padding-block: 64px; }

  /* Proyectos: un proyecto por vez, con las composiciones aprobadas. */
  .x-work { padding-block: 72px; }
  .x-filters { margin-bottom: 24px; }
  .x-cases > .x-case, .x-cases > .x-pair > .x-case { flex: 0 0 88%; margin: 0 !important; }
  .x-cases > .x-pair { display: contents; }
  .x-work .x-cases[data-carousel] { margin-inline: 0; width: 100% !important; }
  .x-work > .x-car-ctrl { margin-inline: var(--m); }
  .x-case { row-gap: 18px; }
  .x-case-text h3 { font-size: 32px; }
  .x-case-text p { font-size: 17px; }
  .x-case[data-layout] .x-case-text .x-btn { margin-top: 16px; }
  .x-case[data-layout] .x-case-text .x-domain { display: none; }
  .x-work-foot { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
  .x-work-foot .x-only-m { margin-top: 0; }

  /* Clientes y contacto: espacios más contenidos. */
  .x-about { padding-block: 72px; }
  .x-clients-k { margin-top: 40px; }
  #contacto { padding-block: 72px; }
  .help { padding-bottom: 64px; }

  /* ---------- Footer compacto ---------- */
  .x-foot { padding-top: 48px; padding-bottom: 24px; }
  .x-foot-top { grid-template-columns: 1fr 1fr; row-gap: 28px; column-gap: 16px; }
  .x-foot-brand { grid-column: 1 / -1; gap: 14px; }
  .x-foot-brand p { font-size: 15px; }
  .x-foot-col, .x-foot-col:first-of-type { grid-column: span 1; }
  .x-foot-col.wide { grid-column: span 1; }
  .x-foot-col.wide:last-child { grid-column: 1 / -1; }
  .x-foot-col h4 { margin-bottom: 4px; }
  .x-foot-col a, .x-foot-col li { font-size: 15px; }
  .x-foot-mail { margin-top: 32px; font-size: clamp(22px, 7vw, 30px); }
  .x-foot-legal { margin-top: 24px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .x-acc-chev, .x-dot::before { transition: none; }
  .x-acc-in { animation: none; }
}

/* EQUANTUM V5.3 — Blog desktop compacto */
@media (min-width: 1025px) {

  .blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: repeat(3, auto);
    column-gap: 32px;
    row-gap: 20px;
    align-items: start;
  }

  .blog-card.blog-feature {
    grid-column: 1;
    grid-row: 1 / 4;
  }

  .blog-card.blog-feature .blog-art {
    aspect-ratio: 16 / 8;
  }

  .blog-card.blog-feature h3 {
    font-size: clamp(27px, 2vw, 34px);
    line-height: 1.15;
    max-width: none;
  }

  .blog-card:not(.blog-feature) {
    grid-column: 2;
    align-self: start;
  }

  .blog-card:not(.blog-feature) a {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .blog-card:not(.blog-feature) .blog-art {
    aspect-ratio: 4 / 3;
  }

  .blog-card:not(.blog-feature) h3 {
    font-size: 19px;
    line-height: 1.3;
  }

}

/* EQUANTUM V5.4 — Noticias secundarias desktop */
@media (min-width: 1025px) {

  .blog-grid {
    column-gap: 40px;
    row-gap: 24px;
  }

  .blog-card:not(.blog-feature) {
    align-self: start;
  }

  .blog-card:not(.blog-feature) a {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    margin: 0;
    background: #f4f7fb;
    border-radius: 16px;
    align-items: center;
  }

  .blog-card:not(.blog-feature) .blog-art {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
  }

  .blog-card:not(.blog-feature) h3 {
    font-size: 18px;
    line-height: 1.4;
  }

}


/* EQUANTUM V5.5 — Servicios desktop 2x2 */
@media (min-width: 1100px) {

  .x-mosaic-s {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    grid-auto-rows: auto;
    gap: 20px;
    align-items: stretch;
  }

  .x-ms-head {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0 0 24px;
  }

  .x-ms-head h2 {
    max-width: none;
  }

  .x-ms-head p {
    max-width: 65ch;
  }

  .x-ms-pic {
    display: none;
  }

  .x-ms-a1,
  .x-ms-a2,
  .x-ms-a3,
  .x-ms-a4 {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
    padding: 32px;
  }

  .x-ms-a3 ul,
  .x-ms-a4 ul {
    columns: 1;
  }

  .x-ms ul {
    margin-top: 20px;
    line-height: 1.5;
  }
}


/* EQUANTUM V5.6 — Servicios desktop compacto */
@media (min-width: 1100px) {

  .x-services {
    padding-block: 44px;
  }

  .x-mosaic-s {
    gap: 12px 16px;
  }

  .x-ms-head {
    padding: 0 0 8px;
  }

  .x-ms-head h2 {
    font-size: clamp(30px, 2.6vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .x-ms-head p {
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.4;
    max-width: 75ch;
  }

  .x-ms-a1,
  .x-ms-a2,
  .x-ms-a3,
  .x-ms-a4 {
    min-height: 0;
    padding: 20px 24px;
  }

  .x-ms h3 {
    font-size: clamp(22px, 1.65vw, 27px);
    line-height: 1.15;
  }

  .x-ms ul {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.35;
    gap: 5px;
  }

  .x-ms-a3 ul,
  .x-ms-a4 ul {
    columns: 1;
  }
}


/* EQUANTUM V5.7 — Servicios mobile */
@media (max-width: 767px) {

  .x-services {
    padding-block: 44px;
  }

  .x-mosaic-s {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .x-ms-head {
    padding: 0 0 16px;
  }

  .x-ms-head h2 {
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.08;
  }

  .x-ms-head p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.5;
  }

  .x-ms-pic {
    display: none;
  }

  .x-ms-a1,
  .x-ms-a2,
  .x-ms-a3,
  .x-ms-a4 {
    min-height: 0;
    padding: 8px 18px;
    border-radius: 16px;
  }

  .x-ms h3 {
    font-size: 21px;
    line-height: 1.2;
  }

  .x-ms h3 .x-acc-btn {
    min-height: 52px;
    padding: 10px 0;
  }

  .x-acc-sum {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 13px;
    line-height: 1.4;
  }

  .x-ms .x-acc-panel ul {
    padding-bottom: 14px;
    font-size: 15px;
    line-height: 1.45;
  }

  .x-services .x-only-m {
    margin-top: 18px;
  }
}


/* EQUANTUM V5.8 — Desktop comercial */
@media (min-width: 1100px) {

  .x-hero {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .x-hero-in {
    align-items: center;
  }

  .x-hero-title {
    grid-column: 1 / 7;
    grid-row: 1;
    font-size: clamp(48px, 4.5vw, 76px);
    line-height: 1.04;
  }

  .x-hero-talk {
    grid-column: 1 / 6;
    grid-row: 2;
    margin-top: 28px;
  }

  .x-hero-lead {
    max-width: 44ch;
    font-size: 19px;
  }

  .x-hero-names,
  .x-hero .x-stage {
    display: none;
  }

  .eq58-showcase {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: center;
    min-width: 0;
  }

  .eq58-service {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 112px;
    padding: 18px;
    border-radius: 16px;
    background: #eaf5ff;
    color: #09204b;
  }

  .eq58-service strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
  }

  .eq58-service p {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.4;
  }

  .eq58-icon {
    font-size: 24px;
    color: #009fe3;
  }

  .eq58-dashboard {
    grid-column: 1 / -1;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    background: #f8fbff;
    color: #09204b;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
  }

  .eq58-dashboard-head {
    display: flex;
    justify-content: space-between;
    padding: 13px 20px;
    background: #dcebf8;
    font-size: 12px;
  }

  .eq58-dashboard-body {
    padding: 22px;
  }

  .eq58-eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    color: #087db6;
  }

  .eq58-dashboard h3 {
    margin: 8px 0 20px;
    font-size: 25px;
  }

  .eq58-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .eq58-metrics div {
    padding: 12px;
    border-radius: 10px;
    background: #edf4fa;
  }

  .eq58-metrics small {
    display: block;
    font-size: 11px;
  }

  .eq58-metrics strong {
    display: block;
    margin-top: 6px;
    font-size: 22px;
  }

  .eq58-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 70px;
    margin-top: 20px;
  }

  .eq58-bars i {
    flex: 1;
    height: 35%;
    border-radius: 5px 5px 0 0;
    background: #08a9e5;
  }

  .eq58-bars i:nth-child(3n) { height: 75%; }
  .eq58-bars i:nth-child(4n) { height: 95%; }
  .eq58-bars i:nth-child(5n) { height: 55%; }

  .eq58-ecommerce {
    background: #d8edff;
  }

  .eq58-tech {
    background: #edf4ff;
  }
}

@media (max-width: 1099px) {
  .eq58-showcase {
    display: none !important;
  }
}


/* EQUANTUM V5.9 — Fondo portada desktop */
@media (min-width: 1100px) {

  .x-hero {
    background-color: #061638;
    background-image: url('/img/portada-equantum-v58.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 690px;
  }

  /* Ocultar la composición anterior, solamente en desktop */
  .eq58-showcase {
    display: none !important;
  }

  .x-hero-title,
  .x-hero-talk {
    position: relative;
    z-index: 2;
  }

  .x-hero-title {
    grid-column: 1 / 7;
    font-size: clamp(48px, 4.5vw, 76px);
  }

  .x-hero-talk {
    grid-column: 1 / 6;
  }
}


/* EQUANTUM V5.10 — Ajustes finales desktop */

/* El nuevo botón solo aparece en desktop. */
.eq510-desktop-services {
  display: none !important;
}

@media (min-width: 1100px) {

  /* Mostrar la imagen completa sin recortar los dispositivos. */
  .x-hero {
    background-size: contain;
    background-position: center bottom;
  }

  /* Dos botones en la misma fila. */
  .x-hero .x-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .x-hero .x-actions .x-btn {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
  }

  .x-hero .eq510-mobile-contact {
    display: none !important;
  }

  .x-hero .eq510-desktop-services {
    display: inline-flex !important;
  }
}


/* EQUANTUM V5.11 — Corregir fondo desktop */
@media (min-width: 1100px) {

  .x-hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

}

/* EQUANTUM MOBILE — Corrección de capa única */
@media (max-width: 767px) {

  .x-hero {
    position: relative;
    overflow: hidden;
    background-color: #061638;
    background-image: url('/img/portada-equantum-mobile.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
  }

  .x-hero::after {
    content: none !important;
    display: none !important;
  }

  .x-hero-in {
    position: relative;
    z-index: 1;
    padding-bottom: 250px !important;
  }

  .x-hero .x-stage {
    display: none !important;
  }

  .x-hero-title,
  .x-hero-talk,
  .x-hero .x-actions {
    position: relative;
    z-index: 2;
  }

}


/* EQUANTUM V5.17 — Botones mobile visibles */
@media (max-width: 767px) {

  .x-hero .x-actions {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .x-hero .x-actions .x-btn {
    position: relative;
    z-index: 11;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }

  .x-hero .x-actions .x-btn-primary {
    justify-content: space-between;
  }

  .x-hero .x-actions .eq510-mobile-contact {
    color: #ffffff;
    background-color: #071b43;
    border: 1px solid rgba(255,255,255,.85);
  }

  .x-hero .x-actions .eq510-desktop-services {
    display: none !important;
  }

}

@media (max-width: 359px) {

  .x-hero .x-actions .x-btn {
    padding: 12px 14px;
    font-size: 13px;
  }

}


/* EQUANTUM V5.18 — Paquetes desktop */
@media (min-width: 1100px) {

  /* Reducir espacios dentro de las tarjetas */
  .x-plan-card {
    padding: 20px 22px 18px;
    min-height: 0;
  }

  .x-plan-benefits {
    margin-top: 14px;
    gap: 7px;
  }

  .x-plan-actions {
    padding-top: 16px;
  }

  /* EQ 360: conservar posición y distribución */
  .x-plan-360 .x-plan-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 24px 28px;
    background-color: #0b2055;
    transition:
      transform .35s ease,
      box-shadow .35s ease;
  }

  /* Iluminación premium */
  .x-plan-360 .x-plan-card::before {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: -1;
    background:
      radial-gradient(
        circle at 70% 40%,
        rgba(0, 174, 239, .22),
        transparent 42%
      );
    animation: eq360Glow 9s ease-in-out infinite alternate;
    pointer-events: none;
  }

  /* Título destacado */
  .x-plan-360 .x-plan-name {
    font-size: clamp(52px, 4.5vw, 76px);
    letter-spacing: -0.04em;
  }

  /* Beneficios compactos */
  .x-plan-360 .x-plan-benefits {
    margin-top: 0;
    gap: 10px;
  }

  /* Botón principal */
  .x-plan-360 .x-btn-ink {
    background-color: #00aeea;
    color: #061638;
    transition:
      background-color .25s ease,
      transform .25s ease;
  }

  .x-plan-360 .x-btn-ink:hover {
    background-color: #38c7ff;
    transform: translateY(-2px);
  }

  /* Interacción de tarjeta */
  .x-plan-360 .x-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(8, 28, 75, .22);
  }

  @keyframes eq360Glow {
    from {
      transform: translate(-5%, 2%);
      opacity: .55;
    }

    to {
      transform: translate(5%, -3%);
      opacity: 1;
    }
  }

}

/* Accesibilidad: reducir animaciones */
@media (prefers-reduced-motion: reduce) {

  .x-plan-360 .x-plan-card,
  .x-plan-360 .x-plan-card::before,
  .x-plan-360 .x-btn-ink {
    animation: none !important;
    transition: none !important;
  }

}


/* EQUANTUM V5.19 — EQ 360 Premium */
@media (min-width: 1100px) {

  /* Tarjeta premium */
  .x-plan-360 .x-plan-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(
      125deg,
      #081a48 0%,
      #0c2863 52%,
      #073f79 100%
    );
    border: 1px solid rgba(64, 197, 255, .28);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.10),
      0 8px 24px rgba(5,22,65,.10);
    transition:
      transform .4s ease,
      box-shadow .4s ease,
      border-color .4s ease;
  }

  /* Iluminación azul animada */
  .x-plan-360 .x-plan-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -45%;
    background:
      radial-gradient(
        ellipse at 30% 45%,
        rgba(0,190,255,.30),
        transparent 38%
      ),
      radial-gradient(
        ellipse at 78% 55%,
        rgba(35,110,255,.34),
        transparent 42%
      );
    opacity: .85;
    transform: translate3d(-7%, 0, 0);
    animation: eq360PremiumLight 7s ease-in-out infinite alternate;
    pointer-events: none;
  }

  /* Reflejo diagonal */
  .x-plan-360 .x-plan-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(
      115deg,
      transparent 20%,
      rgba(255,255,255,.055) 46%,
      transparent 70%
    );
    background-size: 220% 100%;
    animation: eq360PremiumShine 10s linear infinite;
    pointer-events: none;
  }

  /* Contenido siempre visible */
  .x-plan-360 .x-plan-head,
  .x-plan-360 .x-plan-body {
    position: relative;
    z-index: 2;
  }

  /* Identificación premium */
  .x-plan-360 .x-plan-id {
    color: #70d9ff;
    letter-spacing: .025em;
  }

  /* Título protagonista */
  .x-plan-360 .x-plan-name {
    font-size: clamp(56px, 4.8vw, 78px);
    letter-spacing: -.055em;
    line-height: 1;
    text-shadow: 0 4px 28px rgba(0,160,255,.18);
  }

  /* Beneficios */
  .x-plan-360 .x-plan-benefits {
    gap: 12px;
  }

  .x-plan-360 .x-plan-benefits li {
    position: relative;
    z-index: 2;
  }

  /* Botón principal */
  .x-plan-360 .x-btn-ink {
    background: #00b5f0;
    color: #061638;
    box-shadow: 0 5px 20px rgba(0,181,240,.20);
    transition:
      transform .25s ease,
      background-color .25s ease,
      box-shadow .25s ease;
  }

  .x-plan-360 .x-btn-ink:hover {
    background: #54d5ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,181,240,.38);
  }

  /* Interacción de la tarjeta */
  .x-plan-360 .x-plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91,218,255,.65);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.14),
      0 18px 42px rgba(5,22,65,.24),
      0 0 24px rgba(0,174,239,.12);
  }

  /* Movimiento de iluminación */
  @keyframes eq360PremiumLight {
    0% {
      transform: translate3d(-7%, 0, 0);
      opacity: .55;
    }
    100% {
      transform: translate3d(7%, -4%, 0);
      opacity: 1;
    }
  }

  /* Reflejo suave */
  @keyframes eq360PremiumShine {
    0% {
      background-position: 180% 0;
    }
    100% {
      background-position: -120% 0;
    }
  }

}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {

  .x-plan-360 .x-plan-card,
  .x-plan-360 .x-plan-card::before,
  .x-plan-360 .x-plan-card::after,
  .x-plan-360 .x-btn-ink {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

}


/* EQUANTUM V5.20 — Espaciado Paquetes Desktop */
@media (min-width: 1100px) {

  /* Reducir espacio superior de Paquetes */
  .x-sec.x-plans {
    padding-top: 48px;
  }

  /* Acercar el encabezado a las tarjetas */
  .x-plans > .x-wrap > .x-head {
    margin-bottom: 24px;
  }

  /* Acercar descripción al título */
  .x-plans .x-head-main > p {
    margin-top: 12px;
  }

  /* Acercar enlace a la descripción */
  .x-plans .x-head-act {
    margin-top: 16px;
  }

}


/* EQUANTUM V5.21 — Precios de paquetes */

/* Precios integrados sin modificar el diseño de las tarjetas */
.x-plans .eq521-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 18px;
  margin-bottom: 6px;
}

.x-plans .eq521-price strong {
  font-size: clamp(25px, 2.3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
  color: #0878b8;
}

.x-plans .eq521-price span {
  font-size: 14px;
  font-weight: 500;
  color: #52657c;
}

.x-plans .eq521-price-custom strong {
  font-size: clamp(21px, 1.8vw, 28px);
  color: #17365c;
}

/* EQ 360: mantener contraste sobre fondo oscuro */
.x-plan-360 .eq521-price strong {
  color: #74ddff;
}

.x-plan-360 .eq521-price span {
  color: rgba(255,255,255,.78);
}

/* Adaptación mobile sin modificar la distribución aprobada */
@media (max-width: 767px) {
  .x-plans .eq521-price {
    margin-top: 16px;
  }

  .x-plans .eq521-price strong {
    font-size: 28px;
  }

  .x-plans .eq521-price-custom strong {
    font-size: 23px;
  }
}


/* EQUANTUM V5.22 — Espaciado Problemas y Metodología Desktop */

@media (min-width: 1100px) {

  /* Problemas que resolvemos */
  .x-sec.x-problems {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .x-problems > .x-wrap > .x-head {
    margin-bottom: 24px;
  }

  /* Metodología */
  .x-sec.x-method {
    padding-top: 48px;
    padding-bottom: 48px;
  }

}


/* EQUANTUM V5.23 — Seguridad Bancaria Desktop */

/* Por defecto, conservar la versión anterior */
.eq523-security {
  display: none;
}

.eq523-mobile-original {
  display: block;
}

@media (min-width: 1100px) {

  .x-sec.x-security {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #061936;
    color: #fff;
  }

  .eq523-mobile-original {
    display: none;
  }

  .eq523-security {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    min-height: 560px;
    align-items: center;
    gap: 24px;
    padding: 72px max(5vw, 40px);
    background:
      radial-gradient(circle at 85% 45%, #12487b 0%, transparent 45%),
      linear-gradient(125deg, #04142f, #06254d);
  }

  .eq523-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
  }

  .eq523-eyebrow {
    margin-bottom: 22px;
    color: #36c7ff;
    font-size: 15px;
    font-weight: 600;
  }

  .eq523-content h2 {
    margin: 0;
    font-size: clamp(44px, 4.6vw, 76px);
    line-height: 1.02;
    letter-spacing: -.045em;
    color: #fff;
  }

  .eq523-content h2 span {
    color: #40c9ff;
  }

  .eq523-lead {
    margin-top: 24px;
    font-size: clamp(19px, 1.5vw, 25px);
    line-height: 1.35;
    font-weight: 600;
  }

  .eq523-description {
    max-width: 690px;
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.55;
    color: #b8cde1;
  }

  .eq523-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 38px;
  }

  .eq523-service {
    min-width: 0;
  }

  .eq523-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border: 1px solid #35719c;
    border-radius: 12px;
    color: #39c8ff;
    font-size: 27px;
  }

  .eq523-service h3 {
    font-size: 16px;
    line-height: 1.3;
    color: #fff;
  }

  .eq523-service p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #b8cde1;
  }

  .eq523-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 56px;
    margin-top: 38px;
    padding: 0 28px;
    border-radius: 999px;
    background: #3cc8fa;
    color: #051b39;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
  }

  .eq523-cta:hover {
    background: #8ae3ff;
    transform: translateY(-2px);
  }

  .eq523-cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
  }

  .eq523-visual {
    position: relative;
    height: 460px;
    min-width: 0;
    isolation: isolate;
  }

  .eq523-bank {
    position: absolute;
    inset: 14% 0 5% 10%;
    overflow: hidden;
    border: 1px solid #316b9d;
    border-radius: 18px;
    background:
      repeating-linear-gradient(
        90deg,
        transparent 0 54px,
        rgba(100,190,245,.12) 55px 57px
      ),
      repeating-linear-gradient(
        0deg,
        transparent 0 54px,
        rgba(100,190,245,.12) 55px 57px
      ),
      linear-gradient(140deg, #153f6a, #071b38);
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
    transform: perspective(900px) rotateY(-8deg);
  }

  .eq523-bank-label {
    position: absolute;
    top: 12%;
    right: 12%;
    color: #e6f5ff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .12em;
  }

  .eq523-bank-windows {
    position: absolute;
    inset: 34% 10% 10%;
    background: repeating-linear-gradient(
      90deg,
      rgba(72,168,232,.22) 0 32px,
      transparent 33px 48px
    );
  }

  .eq523-shield {
    position: absolute;
    z-index: 3;
    top: 32%;
    left: 28%;
    width: 145px;
    padding: 16px;
    border: 1px solid rgba(83,206,255,.6);
    border-radius: 22px;
    background: rgba(10,66,112,.72);
    color: #5dd9ff;
    box-shadow: 0 0 60px rgba(0,183,255,.24);
    backdrop-filter: blur(12px);
  }

  .eq523-shield svg {
    display: block;
    width: 100%;
  }

  .eq523-status {
    position: absolute;
    z-index: 4;
    padding: 13px 16px;
    border: 1px solid #36749e;
    border-radius: 12px;
    background: rgba(7,39,75,.92);
    color: #e4f5ff;
    font-size: 13px;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
  }

  .eq523-status span {
    color: #36d4ff;
  }

  .eq523-status-one {
    top: 8%;
    left: 0;
  }

  .eq523-status-two {
    top: 17%;
    right: -1%;
  }

  .eq523-status-three {
    bottom: 6%;
    right: 0;
  }

  .eq523-orbit {
    position: absolute;
    z-index: 2;
    width: 90%;
    height: 42%;
    border: 1px solid rgba(58,205,255,.38);
    border-radius: 50%;
    transform: rotate(-18deg);
  }

  .eq523-orbit-one {
    top: 28%;
    left: 2%;
  }

  .eq523-orbit-two {
    top: 36%;
    left: 8%;
    transform: rotate(18deg);
  }

}

@media (prefers-reduced-motion: reduce) {
  .eq523-cta {
    transition: none;
  }
}


/* EQUANTUM V5.24 — Imagen bancaria Desktop */

@media (min-width: 1100px) {

  .x-sec.x-security .eq523-security {
    min-height: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 20px;
    padding: 48px max(5vw, 40px);
    background:
      linear-gradient(
        90deg,
        #04152f 0%,
        #062348 65%,
        #092c52 100%
      );
  }

  .x-sec.x-security .eq523-visual {
    height: 340px;
    background-image:
      url("img/seguridad-bancaria-desktop.png");
    background-size: cover;
    background-position: 72% center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
  }

  /* Ocultar únicamente el gráfico CSS anterior */
  .x-sec.x-security .eq523-bank,
  .x-sec.x-security .eq523-shield,
  .x-sec.x-security .eq523-status,
  .x-sec.x-security .eq523-orbit {
    display: none;
  }

  .x-sec.x-security .eq523-services {
    margin-top: 24px;
    gap: 14px;
  }

  .x-sec.x-security .eq523-cta {
    margin-top: 26px;
  }

  .x-sec.x-security .eq523-eyebrow {
    margin-bottom: 14px;
  }

  .x-sec.x-security .eq523-lead {
    margin-top: 16px;
  }

  .x-sec.x-security .eq523-description {
    margin-top: 10px;
  }

}

/* Imagen reservada para la futura versión mobile.
   No modifica el diseño mobile aprobado. */


/* EQUANTUM V5.25 — Seguridad bancaria fondo completo */

@media (min-width: 1100px) {

  .x-sec.x-security .eq523-security {
    position: relative;
    display: block;
    min-height: 0;
    padding: 48px max(5vw, 40px);
    background-image:
      linear-gradient(
        90deg,
        rgba(3, 17, 42, .98) 0%,
        rgba(3, 20, 47, .96) 30%,
        rgba(3, 23, 52, .78) 48%,
        rgba(3, 23, 52, .12) 100%
      ),
      url("img/seguridad-bancaria-desktop.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .x-sec.x-security .eq523-content {
    position: relative;
    z-index: 2;
    width: 62%;
    max-width: 760px;
  }

  .x-sec.x-security .eq523-visual {
    display: none;
  }

  .x-sec.x-security .eq523-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

}



/* EQUANTUM V5.27 — Seguridad bancaria Mobile */

@media (max-width: 1099px) {

  /* Activar contenido de la nueva sección */
  .x-sec.x-security {
    padding: 0;
    background: #04152f;
    color: #fff;
  }

  .x-sec.x-security .eq523-mobile-original {
    display: none;
  }

  .x-sec.x-security .eq523-security {
    display: block;
    position: relative;
    min-height: 0;
    padding: 48px 24px 260px;
    background-image:
      linear-gradient(
        180deg,
        rgba(3, 17, 42, .99) 0%,
        rgba(3, 17, 42, .97) 42%,
        rgba(3, 17, 42, .82) 65%,
        rgba(3, 17, 42, .12) 100%
      ),
      url("img/seguridad-bancaria-mobile.png");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
  }

  .x-sec.x-security .eq523-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }

  .x-sec.x-security .eq523-eyebrow {
    margin: 0 0 16px;
    color: #3cc8fa;
    font-size: 13px;
  }

  .x-sec.x-security .eq523-content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 8vw, 52px);
    line-height: 1.06;
    letter-spacing: -.045em;
  }

  .x-sec.x-security .eq523-content h2 span {
    color: #3cc8fa;
  }

  .x-sec.x-security .eq523-lead {
    margin-top: 18px;
    color: #fff;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
  }

  .x-sec.x-security .eq523-description {
    margin-top: 12px;
    color: #c3d4e5;
    font-size: 15px;
    line-height: 1.55;
  }

  .x-sec.x-security .eq523-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
  }

  .x-sec.x-security .eq523-service {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }

  .x-sec.x-security .eq523-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    border: 1px solid #35719c;
    border-radius: 10px;
    color: #3cc8fa;
    font-size: 22px;
  }

  .x-sec.x-security .eq523-service h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
  }

  .x-sec.x-security .eq523-service p {
    margin-top: 5px;
    color: #c3d4e5;
    font-size: 13px;
    line-height: 1.45;
  }

  .x-sec.x-security .eq523-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
    margin-top: 30px;
    padding: 0 24px;
    border-radius: 999px;
    background: #3cc8fa;
    color: #04152f;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .x-sec.x-security .eq523-visual {
    display: none;
  }

}

@media (max-width: 480px) {

  .x-sec.x-security .eq523-security {
    padding: 40px 22px 240px;
  }

}


/* EQUANTUM V5.28 — Imagen bancaria visible en Mobile */

@media (max-width: 1099px) {

  .x-sec.x-security .eq523-security {
    position: relative;
    isolation: isolate;
    padding: 40px 22px 0;
    background: #04152f;
    overflow: hidden;
  }

  .x-sec.x-security .eq523-content {
    position: relative;
    z-index: 2;
    padding-bottom: 32px;
  }

  /* Fotografía independiente debajo del contenido */
  .x-sec.x-security .eq523-security::after {
    content: "";
    display: block;
    position: relative;
    z-index: 1;
    width: calc(100% + 44px);
    height: clamp(340px, 105vw, 480px);
    margin-left: -22px;
    background-image:
      linear-gradient(
        180deg,
        #04152f 0%,
        rgba(4,21,47,0) 18%
      ),
      url("img/seguridad-bancaria-mobile.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
  }

  .x-sec.x-security .eq523-visual {
    display: none;
  }

}


/* EQUANTUM V5.29 — Fondo bancario Mobile estilo portada */

@media (max-width: 1099px) {

  .x-sec.x-security .eq523-security {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 40px 22px 220px;

    background-color: #04152f;

    background-image:
      linear-gradient(
        180deg,
        rgba(4,21,47,1) 0%,
        rgba(4,21,47,.98) 25%,
        rgba(4,21,47,.92) 48%,
        rgba(4,21,47,.65) 65%,
        rgba(4,21,47,.08) 100%
      ),
      url("img/seguridad-bancaria-mobile.png");

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
  }

  .x-sec.x-security .eq523-security::after {
    content: none !important;
    display: none !important;
  }

  .x-sec.x-security .eq523-content {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
  }

  .x-sec.x-security .eq523-visual {
    display: none;
  }

}



/* EQUANTUM V5.31 — Footer desarrollado por nosotros */

.x-foot .eq531-credit,
.eq531-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 0;
  text-align: center;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.eq531-credit .eq531-heart {
  display: inline-block;
  font-size: 0.9em;
  line-height: 1;
}

@media (max-width: 767px) {
  .eq531-credit {
    gap: 8px;
    padding: 18px 0;
    font-size: clamp(20px, 5.5vw, 27px);
  }
}


/* EQUANTUM V5.32 — Crédito discreto desktop */

@media (min-width: 768px) {
  .eq531-credit {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    gap: 8px;
    padding: 16px 0;
  }

  .eq531-credit .eq531-heart {
    font-size: 17px;
  }
}


/* EQUANTUM V5.33 — Tamaño final del crédito desktop */

@media screen and (min-width: 768px) {
  body .eq531-credit {
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    gap: 6px !important;
    padding: 12px 0 !important;
  }

  body .eq531-credit > span:first-child {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
  }

  body .eq531-credit .eq531-heart {
    font-size: 13px !important;
    line-height: 1 !important;
  }
}
