/* Shared visual layer for the modern landing experiment (ES + PT). */
:root {
  --radio-grande: 24px;
  --radio-medio: 14px;
  --vidrio: rgba(255, 255, 255, .07);
}

body {
  overflow-x: hidden;
}

html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

[hidden] {
  display: none !important;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  background: var(--ambar);
  box-shadow: 0 0 18px rgba(240, 164, 0, .55);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.nav {
  gap: 28px;
}

.nav-secciones {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-secciones a {
  color: rgba(242, 243, 245, .66);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s var(--ease);
}

.nav-secciones a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.nav a.cta-mini,
.boton-app,
.cta-final a.boton {
  border-radius: 999px;
}

.hero {
  background:
    radial-gradient(circle at 74% 18%, rgba(240, 164, 0, .12), transparent 28%),
    radial-gradient(circle at 15% 75%, rgba(100, 118, 255, .07), transparent 30%),
    linear-gradient(145deg, #161920 0%, #101217 58%, #090a0d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

@media (min-width: 901px) {
  .hero-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 40px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(242, 243, 245, .72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  animation: rise .7s var(--ease) both;
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 5px rgba(44, 156, 88, .14);
}

.hero-marca {
  margin-bottom: 22px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  animation: rise .7s .42s var(--ease) both;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: rgba(242, 243, 245, .68);
  font-size: 12px;
  font-weight: 700;
}

.hero-proof span::before {
  content: "✓";
  color: var(--ambar);
}

.hero h1.copy-in,
.hero .bajada.copy-in {
  animation: copy-in .55s var(--ease) both;
}

.hero-visual {
  perspective: 1200px;
  isolation: isolate;
}

.dashboard-stack {
  width: 100%;
}

.dashboard-panels {
  display: grid;
  padding: 0 28px 28px 0;
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
}

.dashboard-panel {
  grid-area: 1 / 1;
  background: linear-gradient(145deg, #171a20, #0e1014);
  opacity: 0;
  pointer-events: none;
  transform: translate(36px, 36px) scale(.92);
  transform-origin: center;
  transition:
    opacity .55s var(--ease),
    transform .7s var(--ease),
    box-shadow .3s var(--ease);
}

.dashboard-panel.is-active {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: translate(0) scale(1);
}

.dashboard-panel.is-next {
  z-index: 3;
  opacity: .68;
  transform: translate(10px, 10px) scale(.975);
}

.dashboard-panel.is-after {
  z-index: 2;
  opacity: .32;
  transform: translate(20px, 20px) scale(.95);
}

.product-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radio-grande);
  background: #0e1014;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 720;
  object-fit: contain;
  background: #0e1014;
}

.product-shot figcaption {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.tablero {
  border-radius: var(--radio-grande);
  transform-style: preserve-3d;
}

.tablero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    rgba(255, 255, 255, .09),
    transparent 45%
  );
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.hero-visual:hover .dashboard-panel.is-active::after {
  opacity: 1;
}

.dashboard-panel[data-module="neumaticos"] .tablero-head {
  background: #eeb12f;
}

.dashboard-panel[data-module="choferes"] .tablero-head {
  background: #f5bd45;
}

.dashboard-panel[data-module="mantenimiento"] .tablero-head {
  background: #dc9410;
}

.dashboard-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 2px;
}

.dashboard-pause {
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  cursor: pointer;
}

.dashboard-switcher [data-dashboard-control] {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: width .25s var(--ease), background .25s var(--ease);
}

.dashboard-switcher [data-dashboard-control][aria-pressed="true"] {
  width: 26px;
  border-radius: 999px;
  background: var(--ambar);
}

.dashboard-switcher button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.tablero-head {
  padding: 16px 20px;
}

.tablero tbody tr {
  transition: background .35s var(--ease), opacity .35s;
}

.tablero tbody tr.is-active {
  background: rgba(240, 164, 0, .075);
}

.tablero tbody tr.is-active td:first-child {
  box-shadow: inset 3px 0 var(--ambar);
}

.signal {
  position: absolute;
  z-index: 5;
  min-width: 142px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(22, 25, 32, .82);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
  pointer-events: none;
  animation: signal-float 5s ease-in-out infinite;
}

.signal strong,
.signal small {
  display: block;
}

.signal strong {
  color: var(--ambar);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.1;
}

.signal small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 700;
}

.signal-top {
  top: 6%;
  right: -28px;
}

.signal-bottom {
  bottom: 8%;
  right: -30px;
  animation-delay: -2.5s;
}

.signal-strip {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--linea);
  background: #fff;
}

.signal-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.signal-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  align-items: center;
  padding: 27px 30px;
  border-left: 1px solid var(--linea);
}

.signal-stat:last-child {
  border-right: 1px solid var(--linea);
}

.signal-stat strong {
  grid-row: 1 / 3;
  color: var(--asfalto);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.04em;
  line-height: 1;
}

.signal-stat span {
  color: var(--tinta);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.signal-stat small {
  color: var(--tinta-suave);
  font-size: 12px;
  line-height: 1.3;
}

.demo-block,
.modulo.destacado {
  border-radius: var(--radio-grande);
  box-shadow: 0 30px 70px rgba(23, 26, 32, .13);
}

.form-privacidad {
  flex: 1 1 100%;
  color: rgba(242, 243, 245, .62);
  font-size: 12px;
}

.form-privacidad a {
  color: #fff;
}

.form-error,
.form-ok {
  border-radius: 6px;
  padding: 14px 16px;
  font-weight: 700;
}

.form-error {
  margin-top: 10px;
  background: var(--rojo-fondo);
  color: var(--rojo);
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--linea);
  padding: 4px 0 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 10px 28px 10px 0;
}

.faq p {
  max-width: 44em;
  color: var(--tinta-suave);
  font-size: 16px;
}

.dolor {
  transition: padding .25s var(--ease), background .25s;
}

.dolor:hover {
  padding-inline: 14px;
  background: rgba(255, 255, 255, .55);
}

.paso .num {
  transition: transform .25s var(--ease), background .25s, color .25s;
}

.paso:hover .num {
  color: var(--asfalto);
  background: var(--ambar);
  transform: translateY(-4px);
}

.reveal {
  filter: blur(5px);
  transition:
    opacity .6s var(--ease),
    transform .6s var(--ease),
    filter .6s var(--ease);
}

.reveal.in {
  filter: blur(0);
}

@keyframes signal-float {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-9px) }
}

@keyframes copy-in {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px);
  }
}

@media (max-width: 1060px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    flex: none;
    order: 2;
  }

  .nav-secciones {
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(14, 16, 20, .98);
  }

  .nav-secciones.is-open {
    display: flex;
  }

  .nav-secciones a {
    padding: 12px 14px;
  }

  .signal-top {
    right: 8px;
  }

  .signal-bottom {
    right: 8px;
  }
}

@media (max-width: 720px) {
  .wrap.nav {
    gap: 8px;
    padding-inline: 12px;
  }

  .nav-der {
    gap: 8px;
    margin-left: auto;
    min-width: 0;
  }

  .nav a.cta-mini {
    flex: none;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .wrap.nav {
    padding-inline: 8px;
  }

  .marca-nombre {
    display: none;
  }
}

@media (max-width: 900px) {
  .signal-strip .wrap {
    padding: 0;
  }

  .signal-stat {
    padding: 22px 18px;
  }

  .signal {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 100svh;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-marca .placa-xl {
    width: 48px;
    height: 48px;
  }

  .hero-proof {
    gap: 6px;
  }

  .hero-proof span {
    font-size: 11px;
  }

  .tablero {
    border-radius: 16px;
  }

  .dashboard-panels {
    padding: 0 12px 12px 0;
  }

  .dashboard-panel.is-next {
    transform: translate(6px, 6px) scale(.985);
  }

  .dashboard-panel.is-after {
    transform: translate(12px, 12px) scale(.97);
  }

  .product-shot {
    border-radius: 16px;
  }

  .product-shot figcaption {
    padding: 8px 10px;
    font-size: 11px;
  }

  .tablero table {
    font-size: 12px;
  }

  .tablero td {
    padding: 11px 10px;
  }

  .tablero .cuando {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tablero-head .titulo {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .toast {
    bottom: 50px;
  }

  .signal-strip .wrap {
    grid-template-columns: 1fr;
  }

  .signal-stat,
  .signal-stat:last-child {
    grid-template-columns: 58px 1fr;
    padding: 17px 24px;
    border: 0;
    border-bottom: 1px solid var(--linea);
  }

  .signal-stat strong {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal,
  .scroll-progress {
    animation: none !important;
  }

  .dashboard-panel {
    transition: none;
  }

  .tablero tbody tr {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- sección de precios ---------- */
.precios-sec {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(240, 164, 0, .10), transparent 60%),
    var(--ambar-fondo);
  border-top: 1px solid rgba(240, 164, 0, .18);
  border-bottom: 1px solid rgba(240, 164, 0, .18);
}

/* ---------- calculadora de precios ---------- */
.precio-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 32px;
  border-radius: var(--radio-grande);
  overflow: hidden;
  background: var(--panel);
  color: var(--panel-texto);
  box-shadow: var(--sombra);
  border: 1px solid var(--panel-linea);
}
.calc-control {
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.calc-label {
  font-size: 15px;
  font-weight: 700;
  color: #b7bcc6;
}
.calc-veh-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.calc-veh-num {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: 42px;
  line-height: 1;
  color: #fff;
  min-width: 2.4ch;
  text-align: right;
}
input[type="range"][data-calc-range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ambar) var(--fill, 24%), #2e323b var(--fill, 24%));
  outline: none;
  cursor: pointer;
}
input[type="range"][data-calc-range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ambar);
  border: 3px solid #12141a;
  box-shadow: 0 0 0 1px var(--ambar);
  cursor: pointer;
}
input[type="range"][data-calc-range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #12141a;
  border-radius: 50%;
  background: var(--ambar);
  cursor: pointer;
}
input[type="range"][data-calc-range]:focus-visible {
  box-shadow: 0 0 0 3px rgba(240, 164, 0, .35);
}
.calc-mas {
  font-size: 13.5px;
  color: #8a909b;
}
.calc-mas a {
  color: var(--ambar);
  text-decoration: none;
  font-weight: 700;
}
.calc-mas a:hover {
  text-decoration: underline;
}
.calc-resultado {
  padding: 34px;
  background: var(--asfalto-2);
  border-left: 1px solid var(--panel-linea);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.calc-precio {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: 52px;
  line-height: 1;
  color: #fff;
}
.calc-precio.es-gratis {
  color: var(--ambar);
}
.calc-periodo {
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #9aa0ab;
  margin-left: 6px;
}
.calc-local {
  font-size: 18px;
  font-weight: 700;
  color: var(--ambar);
  min-height: 1.2em;
}
.calc-desglose {
  font-size: 14px;
  color: #8a909b;
}
.calc-cur {
  display: inline-flex;
  gap: 4px;
  margin-top: 6px;
  padding: 4px;
  background: #12141a;
  border-radius: 999px;
}
.calc-cur button {
  border: 0;
  background: transparent;
  color: #9aa0ab;
  font-family: inherit;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.calc-cur button[aria-pressed="true"] {
  background: var(--ambar);
  color: var(--asfalto);
}

.calc-cur button:focus-visible,
.dashboard-pause:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--ambar);
  outline-offset: 2px;
}
.calc-cta {
  margin-top: 16px;
}
.calc-nota {
  font-size: 12.5px;
  color: #787e89;
  line-height: 1.45;
  max-width: 34em;
}
@media (max-width: 720px) {
  .precio-calc {
    grid-template-columns: 1fr;
  }
  .calc-resultado {
    border-left: 0;
    border-top: 1px solid var(--panel-linea);
  }
  .calc-precio {
    font-size: 44px;
  }
}
