/* ROVEX · portada: tipografía grande, profundidad 3D y secciones informativas */

/* ---------- 3D: inclinación con el puntero (solo mouse, sin "reducir movimiento") ---------- */
[data-tilt] { position: relative; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-tilt] {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 520ms var(--ease-out);
  }
  [data-tilt].tilting { transition: transform 90ms linear; }
  [data-tilt]:not([data-noglare])::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.55), transparent 55%);
    transition: opacity 300ms ease; z-index: 3;
  }
  [data-tilt].tilting:not([data-noglare])::after { opacity: 1; }
}

/* ---------- Encabezado ---------- */
.nav-hide { display: none; }
@media (min-width: 1180px) { .nav-hide { display: inline-block; } }

/* ---------- Tipografía de sección ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow b { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.eyebrow-inv { color: #d6d3cc; }
h2.eyebrow { margin-bottom: 18px; }
.sec { padding-block: clamp(56px, 8vw, 112px) 0; }
.sec-tight { padding-top: clamp(40px, 6vw, 80px); }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(24px, 3.5vw, 44px); max-width: 780px; }
.sec-head h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
.sec-head .muted { font-size: 1.0625rem; max-width: 56ch; }
.sec-head .eyebrow { margin: 0; }

/* ---------- Portada ---------- */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(32px, 6vw, 88px) clamp(28px, 4vw, 56px); }
.display { font-size: clamp(2.5rem, 1rem + 5.4vw, 6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; text-wrap: balance; }
.display mark { display: inline-block; background: var(--orange); color: var(--ink); padding: 0.02em 0.16em 0.06em; border-radius: 0.14em; transform: rotate(-1.6deg); transform-origin: 0 100%; }
.lead { margin-top: 24px; max-width: 52ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }
.btn svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover svg:not(.static) { transform: translateX(3px); } }

.finder-card { display: grid; gap: 14px; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 30px 60px -30px rgba(18, 18, 18, 0.35), 0 12px 24px -16px rgba(18, 18, 18, 0.18); }
.finder-card h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.finder-card .btn { margin-top: 4px; }

.stage-wrap { padding-bottom: 8px; }
.stage { perspective: 1400px; }
.stage .carousel { box-shadow: 0 40px 80px -40px rgba(18, 18, 18, 0.45); }

@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-cta .btn-lg { flex: 1 1 100%; }
}

/* ---------- Cifras ---------- */
.stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-top: 28px; }
.stat-i { padding: 28px clamp(8px, 2vw, 28px); display: grid; gap: 4px; border-left: 1px solid var(--line); }
.stat-i:first-child { border-left: 0; padding-left: 0; }
.stat-i dd { margin: 0; order: -1; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-i dd sup { font-size: 0.45em; color: var(--orange-ink); vertical-align: top; margin-left: 2px; }
.stat-i dt { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-i:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat-i:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Bento de categorías ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(172px, auto); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px; border-radius: 22px; background: var(--tile); border: 1px solid transparent; text-align: left; overflow: visible; transition: background-color 200ms ease, border-color 200ms ease; touch-action: manipulation; }
.tile:active { scale: 0.985; }
.tile-ico { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.35); }
.tile-ico svg { width: 28px; height: 28px; }
.tile-name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.tile-n { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.tile-go { position: absolute; top: 22px; right: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: translate(-6px, 6px) scale(0.9); transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); }
.tile-go svg { width: 18px; height: 18px; }
.tile:first-child { grid-column: span 2; grid-row: span 2; background: var(--orange); padding: 30px; }
.tile:first-child .tile-ico { width: 76px; height: 76px; border-radius: 22px; }
.tile:first-child .tile-ico svg { width: 42px; height: 42px; }
.tile:first-child .tile-name { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.tile:first-child .tile-n { color: var(--ink); opacity: 0.75; font-size: 0.9375rem; }
.tile:nth-child(5) { background: var(--ink); color: #fff; }
.tile:nth-child(5) .tile-n { color: #bdbab2; }
.tile:nth-child(5) .tile-go { background: var(--orange); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-go { opacity: 1; transform: none; }
  .tile:not(:first-child):not(:nth-child(5)):hover { background: #fff; border-color: var(--ink); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tile-ico { transform: translateZ(46px); }
  .tile-name { transform: translateZ(26px); }
  .tile-n { transform: translateZ(14px); }
}
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bento { gap: 10px; grid-auto-rows: minmax(150px, auto); } .tile { padding: 16px; border-radius: 18px; } .tile:first-child { padding: 20px; } }

/* ---------- Marquesina de marcas ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; gap: clamp(24px, 4vw, 56px); padding-block: 8px; will-change: transform; }
.mq { display: inline-flex; align-items: center; gap: clamp(24px, 4vw, 56px); min-height: 64px; padding: 0; border: 0; background: none; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color 200ms ease; touch-action: manipulation; }
.mq::after { content: "/"; -webkit-text-stroke: 0; color: var(--orange); font-weight: 400; }
.mq:active { scale: 0.98; }
@media (hover: hover) and (pointer: fine) {
  .mq:hover { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; width: auto; padding-inline: var(--gutter); } .mq:nth-child(n + 100) { display: none; } }

/* ---------- Cómo comprar ---------- */
.steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step4 { position: relative; display: grid; align-content: start; gap: 10px; padding: 26px 24px 28px; min-height: 260px; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: visible; }
.step4-n { font-size: clamp(4rem, 3rem + 3vw, 6.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: transparent; -webkit-text-stroke: 2px var(--orange); margin-bottom: 14px; }
.step4 h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.015em; }
.step4 p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.55; }
.step4:nth-child(2) { background: var(--tile); border-color: transparent; }
.step4:nth-child(4) { background: var(--ink); color: #fff; border-color: var(--ink); }
.step4:nth-child(4) p { color: #cfccc4; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .step4-n { transform: translateZ(50px); }
  .step4 h3 { transform: translateZ(24px); }
}
@media (max-width: 960px) { .steps4 { grid-template-columns: 1fr 1fr; } .step4 { min-height: 0; } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } }

/* ---------- Por qué ROVEX ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 28px; border-radius: 24px; background: var(--tile); }
.svc:nth-child(1) { background: var(--orange-soft); }
.svc-ico { width: 76px; height: 76px; border-radius: 22px; background: #fff; color: var(--orange-ink); display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35); }
.svc-ico svg { width: 44px; height: 44px; }
.svc h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.svc p { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; max-width: 38ch; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .svc-ico { transform: translateZ(40px); } }
@media (max-width: 800px) { .svc-grid { grid-template-columns: 1fr; } .svc { padding: 22px; gap: 16px; } .svc-ico { width: 60px; height: 60px; border-radius: 18px; } .svc-ico svg { width: 34px; height: 34px; } }

/* ---------- Preguntas ---------- */
.faq-wrap .sec-head { max-width: 780px; }
.faq { max-width: 880px; border-top: 1px solid var(--line-strong); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 18px 4px; border: 0; background: none; text-align: left; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); font-weight: 600; letter-spacing: -0.015em; }
.faq-q .pm { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: transform 260ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.faq-q .pm svg { width: 18px; height: 18px; }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item.open .pm { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 64px 24px 4px; color: var(--ink-2); font-size: 1rem; line-height: 1.65; max-width: 70ch; }
.faq-a a { font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .faq-q:hover .pm { border-color: var(--ink); } }

/* ---------- Contacto ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; padding: clamp(32px, 5vw, 72px); border-radius: clamp(24px, 3vw, 40px); background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.cta::before { content: ""; position: absolute; right: -8%; top: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); opacity: 0.95; pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; max-width: 20ch; text-wrap: balance; }
.cta .hero-cta { margin-top: 28px; }
.cta-info { list-style: none; margin: 0; padding: 22px; display: grid; gap: 14px; background: #fff; color: var(--ink); border-radius: 20px; font-size: 0.9375rem; }
.cta-info:empty { display: none; }
.cta-info li { display: flex; gap: 12px; align-items: flex-start; }
.cta-info svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--orange-ink); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta::before { width: 70%; right: -25%; top: -15%; } }

/* ---------- Catálogo: ajustes sobre la base ---------- */
.finder { padding-bottom: 0; }
.finder .sec-head { margin-bottom: 20px; }
.results { padding-top: 28px; }
.card { animation: none; border-radius: 20px; background: #fff; }
.card-img { border-radius: 0; }
.card-name::after { border-radius: inherit; }
.foot { margin-top: clamp(56px, 8vw, 112px); }
.tile-ico { color: var(--ink); }
.nb { white-space: nowrap; }
