/* Portada: hero partido con escena de productos, promo de servicio técnico. */
.hero { position: relative; padding: clamp(36px, 6vw, 84px) 0 clamp(28px, 4vw, 56px); overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg span { position: absolute; border-radius: 999px; filter: blur(70px); opacity: .55; }
.hero-bg .hb1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; right: -8vw; top: -14vw; background: var(--accent-soft); }
.hero-bg .hb2 { width: 30vw; height: 30vw; max-width: 380px; max-height: 380px; left: -10vw; bottom: -12vw; background: var(--accent-soft); opacity: .35; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy .lead { margin-top: 22px; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-nota { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.hero-nota .ic-svg { width: 18px; height: 18px; color: var(--ok); }

/* Banner único (vertical): personas resolviendo su día con tecnología */
.hero-banner { margin: 0; justify-self: end; width: min(100%, 520px); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 8s var(--ease); }
.hero-banner:hover img { transform: scale(1.06); }
.hero-banner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); pointer-events: none; }

/* Pase de escenas: una foto a la vez con su frase debajo */
.hero-pase { justify-self: end; width: min(100%, 450px); display: grid; gap: 14px; }
.hero-pase .hero-banner { width: 100%; justify-self: stretch; }
.pase-fotos .pase-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 6s linear; }
.pase-fotos .pase-img.is-on { opacity: 1; transform: scale(1); }
.pase-fotos .pase-img.is-off { opacity: 0; transform: scale(1); }
.pase-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.pase-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: width .4s var(--ease), background .3s; cursor: pointer; }
.pase-dots button[aria-selected="true"] { width: 26px; background: #fff; }
.pase-textos { position: relative; min-height: 76px; }
.pase-txt { position: absolute; inset: 0; display: grid; gap: 4px; align-content: start; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.pase-txt.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pase-txt b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; }
.pase-txt span { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Escena: tres tarjetas de producto flotando sobre un resplandor */
.hero-stage { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto; width: 100%; }
.hero-stage .glow { position: absolute; inset: 12% 8%; border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%; background: radial-gradient(closest-side, var(--accent-soft), transparent 75%); filter: blur(14px); animation: respira 9s ease-in-out infinite; }
@keyframes respira { 50% { transform: scale(1.06) rotate(6deg); } }
.hs-card { position: absolute; display: block; background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; color: var(--text); transition: transform .7s var(--ease), box-shadow .7s var(--ease); animation: flota 7s ease-in-out infinite; will-change: transform; }
.hs-card img { width: 100%; height: 100%; object-fit: contain; padding: 9%; }
.hs-card .hs-tag { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; padding: 8px 12px; border-radius: var(--r-in); background: var(--surf); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 12px; line-height: 1.25; }
.hs-card .hs-tag b { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.hs-card .hs-tag span { color: var(--muted); font-weight: 600; }
.hs-card .hs-tag em { grid-column: 1 / -1; font-style: normal; color: var(--oferta); font-weight: 800; font-size: 11.5px; }
/* tres tarjetas que no se tapan entre sí: la grande arriba a la izquierda, una a la
   derecha a media altura y una chica abajo, detrás de la grande */
.hs-1 { width: 58%; left: 0; top: 0; animation-delay: 0s; z-index: 3; }
.hs-2 { width: 38%; right: 0; top: 28%; animation-delay: -2.3s; z-index: 2; }
.hs-3 { width: 34%; left: 6%; bottom: 0; animation-delay: -4.6s; z-index: 1; }
.hs-2 .hs-tag, .hs-3 .hs-tag { grid-template-columns: 1fr; }
.hs-2 .hs-tag span, .hs-3 .hs-tag span { display: none; }
@keyframes flota { 50% { transform: translateY(-9px); } }
@media (hover: hover) and (pointer: fine) { a.hs-card:hover { transform: translateY(-6px) scale(1.02); animation-play-state: paused; } }
.hs-vacia { display: grid; place-items: center; color: var(--dim); width: 60%; left: 20%; top: 20%; aspect-ratio: 1; }
.hs-vacia .ic-svg { width: 40%; height: 40%; }

/* Promo de servicio técnico */
.promo { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; padding: clamp(26px, 4vw, 52px); border-radius: var(--r); overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent) 60%, var(--accent-2)); box-shadow: var(--shadow); }
.promo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%); pointer-events: none; }
.promo .eyebrow { color: rgba(255, 255, 255, .8); }
.promo h2 { max-width: 16ch; }
.promo .lead { color: rgba(255, 255, 255, .84); margin-top: 14px; }
.promo .btn { margin-top: 24px; background: #fff; color: var(--accent-deep); box-shadow: none; }
.promo .btn:hover { background: rgba(255, 255, 255, .9); }
.promo-visual { position: relative; min-height: 220px; }
.promo-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-in); }
.promo-visual .pv { position: absolute; width: 84px; height: 84px; border-radius: 24px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; animation: flota 6s ease-in-out infinite; }
.promo-visual .pv .ic-svg { width: 40px; height: 40px; }
.promo-visual .pv1 { left: 8%; top: 6%; } .promo-visual .pv2 { right: 14%; top: 18%; animation-delay: -1.5s; width: 70px; height: 70px; }
.promo-visual .pv3 { left: 28%; bottom: 6%; animation-delay: -3s; width: 96px; height: 96px; } .promo-visual .pv4 { right: 6%; bottom: 12%; animation-delay: -4.5s; }
/* Con fotos: ocupan el lado derecho a sangre, se funden con el color de la paleta y se alternan con un
   fundido lento (y un acercamiento sutil). El texto va siempre por delante. */
.promo.con-img { min-height: 360px; }
.promo.con-img .promo-copy { position: relative; z-index: 2; }
.promo.con-img .promo-visual { position: absolute; inset: 0 0 0 38%; min-height: 0; z-index: 0; }
.promo.con-img .promo-visual img { border-radius: 0; opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease, transform 9s linear;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 52%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 52%); }
.promo.con-img .promo-visual img.is-on { opacity: 1; transform: scale(1.1); }
.promo.con-img .promo-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(0deg, rgba(0, 0, 0, .3), transparent 50%), linear-gradient(90deg, var(--accent-deep), transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 52%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 52%); }
:root[data-palette="tinta"] .promo { background: linear-gradient(120deg, #1b1b1b, #333 60%, #4a4a4a); }
:root[data-palette="tinta"] .promo .btn { color: #111; }
:root[data-palette="carbon"] .promo { color: #111; background: linear-gradient(120deg, var(--accent-deep), var(--accent) 60%, var(--accent-2)); }
:root[data-palette="carbon"] .promo .eyebrow, :root[data-palette="carbon"] .promo .lead { color: rgba(0, 0, 0, .7); }
:root[data-palette="carbon"] .promo .btn { background: #111; color: #fff; }
:root[data-palette="carbon"] .promo-visual .pv { color: #111; background: rgba(0, 0, 0, .1); border-color: rgba(0, 0, 0, .18); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 440px; margin: 10px auto 0; }
  .hero-banner { justify-self: center; width: min(100%, 460px); aspect-ratio: 4 / 4.6; }
  .hero-pase { justify-self: center; width: min(100%, 460px); }
  .pase-textos { text-align: center; min-height: 84px; }
  .pase-txt { justify-items: center; }
  .promo { grid-template-columns: 1fr; }
  .promo-visual { min-height: 170px; }
  .promo.con-img { min-height: 0; padding-bottom: 0; }
  .promo.con-img .promo-visual { position: relative; inset: auto; min-height: 220px; margin: 18px calc(-1 * clamp(26px, 4vw, 52px)) 0; }
  .promo.con-img .promo-visual img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%); }
  .promo.con-img .promo-visual::after { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%); }
}
@media (max-width: 560px) {
  .hero { padding-top: 28px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stage { max-width: 340px; }
  .hs-card .hs-tag { padding: 6px 9px; }
  .promo:not(.con-img) .promo-visual { display: none; }
  .promo.con-img .promo-visual { min-height: 180px; }
  .promo h2 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .promo.con-img .promo-visual img { transition: none; transform: none; } }
