/* ==========================================================================
   POLYTROPO · web unificada (polytropo.es)
   Hoja de estilos común para TODAS las páginas publicadas.

   Base: paleta y componentes de la página de producto DeCA digital,
   generalizados para la página única (GESFLOTA · DeCA digital · Road View 360)
   y para las páginas legales.

   Cargar SIEMPRE después de Bootstrap. Tipografías autoalojadas: Lato
   (titulares en Lato Black 900) y Corbel como fuente secundaria.
   Ver docs/guia-de-estilo.md. Los nombres heredados --forest, --forest-2,
   --amber y --amber-2 se conservan como alias de la paleta nueva.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables de marca
   -------------------------------------------------------------------------- */
:root {
  /* Paleta de marca (ver docs/guia-de-estilo.md) */
  --brand: #00629B;        /* azul primario · Pantone 3015 C */
  --brand-2: #2E8BC0;      /* azul claro · degradados */
  --brand-dark: #004C79;   /* azul oscuro · hovers */
  --accent: #D80073;       /* magenta · Pantone Process Magenta C */
  --accent-2: #F77FBE;     /* magenta claro · acentos sobre fondo oscuro */
  --ink: #052A44;          /* azul casi negro · texto y fondos muy oscuros */
  --deep: #073A5C;         /* azul profundo · bandas oscuras */
  --deep-2: #0B4A73;       /* azul profundo 2 · degradados */
  --paper: #F4F7FA;        /* gris azulado claro */
  --line: rgba(5, 42, 68, .10);
  --muted: #5A6B7A;
  --text: #22303C;
  --on-dark: #B7CAD8;

  /* Alias heredados: mismo valor, nombre antiguo conservado por compatibilidad */
  --forest: var(--deep);
  --forest-2: var(--deep-2);
  --amber: var(--accent);
  --amber-2: var(--accent-2);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* compensa el menú fijo al saltar a una ancla */
  overflow-x: hidden;
}

body {
  font-family: 'Corbel', 'Segoe UI', 'Lato', system-ui, -apple-system, 'Noto Sans', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4,
.oswald {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .2px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid rgba(216, 0, 115, .9);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  padding: .6rem 1.1rem;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   3. Tipografía y utilidades de sección
   -------------------------------------------------------------------------- */
.kicker {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: .8rem;
}
.section--dark .kicker {
  color: var(--accent-2);
}

.section {
  padding: 5.5rem 0;
}
.section--paper { background: var(--paper); }
.section--dark {
  background: linear-gradient(160deg, var(--ink), var(--deep));
  color: #fff;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
}
.section h3.h3-lg {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}

.sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52rem;
}
.section--dark .sub { color: var(--on-dark); }
.sub--center {
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  max-width: 52rem;
}
.section-head--center {
  margin: 0 auto;
  text-align: center;
}

.small-print {
  color: var(--muted);
  font-size: .82rem;
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn-amber {
  background: var(--accent);
  border: 0;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: .85rem 1.7rem;
  letter-spacing: .3px;
  box-shadow: 0 12px 30px rgba(216, 0, 115, .35);
}
.btn-amber:hover,
.btn-amber:focus {
  background: #B30060;
  color: #fff;
}
.btn-amber.btn-sm {
  padding: .55rem 1.15rem;
  font-size: .9rem;
}
.site-nav .btn-amber {
  box-shadow: none;
}

.btn-line {
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  border-radius: 999px;
  padding: .85rem 1.7rem;
  font-weight: 600;
  background: transparent;
}
.btn-line:hover,
.btn-line:focus {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.btn-line-dark {
  border: 1px solid rgba(5, 42, 68, .35);
  color: var(--ink);
  border-radius: 999px;
  padding: .85rem 1.7rem;
  font-weight: 600;
  background: transparent;
}
.btn-line-dark:hover,
.btn-line-dark:focus {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(5, 42, 68, .05);
}

/* --------------------------------------------------------------------------
   5. Barra superior y menú (menú único en todas las páginas)
   -------------------------------------------------------------------------- */
.site-top {
  background: var(--ink);
  color: #C9DCEA;
  font-size: .85rem;
  padding: .5rem 0;
}
.site-top a {
  color: #fff;
  text-decoration: none;
}
.site-top a:hover {
  color: var(--accent-2);
}

.site-nav {
  background: rgba(5, 42, 68, .93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-nav .nav-link {
  color: #D3E2EE;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .9px;
  font-weight: 700;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
  color: var(--accent-2);
}
.site-nav .navbar-toggler {
  border: 0;
}
.site-nav .navbar-toggler:focus {
  box-shadow: none;
}

/* Marca textual provisional.
   Cuando el titular facilite el logotipo POLYTROPO (release/images/brand/),
   sustituir el bloque .brand-mark por <img class="brand-img" ...>. */
.brand-mark {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  text-decoration: none;
}
.brand-mark small {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8FB0C5;
  margin-top: .28rem;
}
.brand-mark:hover {
  color: #fff;
}
.brand-img {
  height: 38px;
  width: auto;
}
.site-nav .brand-img,
.site-footer .brand-img {
  filter: brightness(0) invert(1); /* logotipo en blanco sobre fondos oscuros */
}
.section-logo {
  height: 54px;
  width: auto;
}
.module-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.25rem;
}
.module-logo {
  height: 44px;
  width: auto;
}

/* --------------------------------------------------------------------------
   6. Hero (portada de la página única)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: #041E30;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/slider/slide-bg-1.webp");
  background-size: cover;
  background-position: center 30%;
  opacity: .22;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(46, 139, 192, .42), transparent 60%),
    radial-gradient(900px 500px at 92% 0%, rgba(216, 0, 115, .20), transparent 55%),
    linear-gradient(160deg, rgba(4, 30, 48, .9) 0%, rgba(7, 58, 92, .86) 55%, rgba(7, 58, 92, .92) 100%);
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  margin: 1.3rem 0 1.1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}
.hero p.lead {
  color: #C9DCEA;
  font-size: 1.12rem;
  max-width: 46rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--accent-2);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .78rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.8rem;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .85rem;
  color: #E8F1F8;
}
.hero-badges i {
  color: var(--accent-2);
}

/* Insignias sobre fondo claro (sección DeCA digital) */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.8rem;
}
.badge-plain {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .85rem;
  color: var(--text);
}
.badge-plain i {
  color: var(--brand);
}

/* Fichas de producto del hero */
.hero-tiles {
  display: grid;
  gap: 1rem;
}
.hero-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 1.05rem 1.3rem;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}
.hero-tile:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateX(4px);
}
.hero-tile i {
  font-size: 1.35rem;
  color: var(--accent-2);
  width: 2rem;
  text-align: center;
}
.hero-tile__logo {
  height: 46px;
  min-width: 112px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 12px;
  object-fit: contain;
}
.hero-tile strong {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
  font-size: 1.05rem;
}
.hero-tile span {
  color: var(--on-dark);
  font-size: .9rem;
}

/* Variante horizontal (selector de producto en la portada de las landings) */
.hero-tiles--row {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.hero-tiles--row .hero-tile {
  padding: .9rem 1.1rem;
}
.hero-tiles--row .hero-tile__logo {
  height: 40px;
  min-width: 96px;
  padding: 6px 10px;
}
.hero-tiles--row .hero-tile[aria-current] {
  border-color: rgba(247, 127, 190, .55);
  background: rgba(247, 127, 190, .12);
}

/* --------------------------------------------------------------------------
   7. Tarjetas de producto (sección «Productos»)
   -------------------------------------------------------------------------- */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(5, 42, 68, .12);
}
.product-card__tag {
  display: block;
  color: var(--brand);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: .2rem 0 .6rem;
}
.product-card h3 {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: .6rem;
}
.product-card p {
  color: var(--muted);
  font-size: .95rem;
}
.product-card .more {
  margin-top: auto;
  padding-top: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.product-card .more i {
  transition: transform .2s ease;
}
.product-card .more:hover i,
.product-card:hover .more i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. Tarjetas y bloques de contenido
   -------------------------------------------------------------------------- */
.ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 1.25rem;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  height: 100%;
  padding: 1.7rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature .ico {
  margin-bottom: 1rem;
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
  color: var(--ink);
}
.feature p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(5, 42, 68, .10);
}

/* Variante sobre fondo oscuro */
.section--dark .feature {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}
.section--dark .feature h3 { color: #fff; }
.section--dark .feature p { color: var(--on-dark); }
.section--dark .feature:hover {
  box-shadow: 0 26px 50px rgba(0, 0, 0, .35);
}

/* Bloques numerados (GESFLOTA) */
.numbered {
  position: relative;
  padding-top: .4rem;
}
.numbered__num {
  font-family: 'Lato', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(216, 0, 115, .9);
}
.numbered .black_text {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink);
  margin: .5rem 0 .4rem;
}
.numbered p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}

/* Pasos (cómo funciona) */
.step {
  position: relative;
  padding-left: 4.6rem;
}
.step__num {
  position: absolute;
  left: 0;
  top: -.2rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  background: rgba(247, 127, 190, .16);
  color: var(--accent-2);
  border: 1px solid rgba(247, 127, 190, .38);
}
.step h3 {
  font-size: 1.2rem;
  color: #fff;
}
.step p {
  color: var(--on-dark);
  margin: 0;
}

/* Banda de cifras (GESFLOTA en cifras) */
.stats-band {
  background: linear-gradient(150deg, var(--deep), var(--deep-2));
  border-radius: 26px;
  padding: 2.75rem 2rem;
  color: #fff;
}
.stat {
  text-align: center;
}
.stat__num {
  font-family: 'Lato', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--accent-2);
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: .35rem;
  font-size: .78rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--on-dark);
  font-weight: 600;
}

/* Insignia beta */
.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(247, 127, 190, .14);
  border: 1px solid rgba(247, 127, 190, .45);
  color: var(--accent-2);
  border-radius: 999px;
  padding: .4rem .95rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Listas técnicas */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.spec-list li {
  color: var(--on-dark);
  font-size: .95rem;
  margin-bottom: .45rem;
}
.spec-list li i {
  color: var(--accent-2);
  margin-right: .55rem;
}
.section--paper .spec-list li,
.section:not(.section--dark) .spec-list li {
  color: var(--muted);
}
.section--paper .spec-list li i,
.section:not(.section--dark) .spec-list li i {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   9. Marcos de captura: navegador y móvil
   -------------------------------------------------------------------------- */
.browser {
  border-radius: 16px;
  overflow: hidden;
  background: #041C2B;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px rgba(2, 12, 20, .55);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  height: 38px;
  padding: 0 1rem;
  background: #08304A;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.browser__bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2E4A63;
}
.browser__bar .dot--r { background: #e8615a; }
.browser__bar .dot--y { background: #f0bf4c; }
.browser__bar .dot--g { background: #57b85f; }
.browser__url {
  flex: 1;
  margin-left: .8rem;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  color: #9DB8CC;
  font-size: .72rem;
  padding: .28rem .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser img {
  display: block;
  width: 100%;
  height: auto;
}
.browser--crop img {
  height: 460px;
  object-fit: cover;
  object-position: top center;
}

.phone {
  width: min(300px, 86vw);
  margin: 0 auto;
  border-radius: 38px;
  border: 10px solid #041C2B;
  background: #041C2B;
  box-shadow: 0 34px 60px rgba(2, 12, 20, .45);
  overflow: hidden;
  position: relative;
}
.phone::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  border-radius: 999px;
  background: #041C2B;
}
.phone img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
}

/* --------------------------------------------------------------------------
   10. Galería de capturas (DeCA digital)
   -------------------------------------------------------------------------- */
.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 40px rgba(5, 42, 68, .08);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  padding: 1rem 1.2rem;
  font-size: .92rem;
  color: var(--muted);
  background: #fff;
}
.shot figcaption strong {
  color: var(--ink);
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: .95rem;
}
.shot--crop img {
  height: 460px;
  object-fit: cover;
  object-position: top center;
}

/* --------------------------------------------------------------------------
   11. Banda legal (cumplimiento) y CTA
   -------------------------------------------------------------------------- */
.law {
  border-left: 4px solid var(--amber);
  background: rgba(255, 255, 255, .05);
  border-radius: 0 16px 16px 0;
  padding: 1.2rem 1.4rem;
}
.section:not(.section--dark) .law {
  background: rgba(5, 42, 68, .04);
}
.law strong { color: inherit; }
.section--dark .law strong { color: #fff; }
.law small { color: var(--muted); }
.section--dark .law small { color: var(--on-dark); }

.cta {
  background: linear-gradient(140deg, var(--brand), #003A5C);
  color: #fff;
  border-radius: 26px;
  padding: 3rem;
}
.cta h2 { color: #fff; }
.cta p { color: #C9DCEA; }

/* --------------------------------------------------------------------------
   12. Contacto
   -------------------------------------------------------------------------- */
.contact-item {
  text-align: center;
  padding: 1.6rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  height: 100%;
}
.contact-item .ico {
  margin: 0 auto .8rem;
}
.contact-item p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.form-embed {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 24px 50px rgba(5, 42, 68, .08);
}
.form-embed iframe {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #f8f9fa;
}

/* --------------------------------------------------------------------------
   13. Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 3.5rem 0 1.5rem;
  font-size: .92rem;
}
.site-footer h6 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff;
  font-size: .85rem;
  margin-bottom: 1rem;
}
.site-footer a {
  color: #D3E2EE;
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus {
  color: var(--accent-2);
}
.site-footer ul li {
  margin-bottom: .45rem;
}
.site-footer__note {
  color: #8FB0C5;
  font-size: .88rem;
  margin: 1rem 0 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: .82rem;
  color: #8FB0C5;
}

/* --------------------------------------------------------------------------
   14. Páginas legales (conservan su texto; solo cambian formato y chrome)
   -------------------------------------------------------------------------- */
.legal-page {
  background: #fff;
}
.legal-doc {
  max-width: 62rem;
}
.legal-doc h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.6rem;
}
.legal-doc h2 {
  font-size: 1.3rem;
  margin-top: 2.4rem;
  margin-bottom: .8rem;
  color: var(--ink);
}
.legal-doc h3 {
  font-size: 1.05rem;
  margin-top: 1.6rem;
  color: var(--forest);
}
.legal-doc h4 {
  font-size: 1rem;
}
.legal-doc p,
.legal-doc li {
  color: #33424E;
  font-size: .98rem;
  line-height: 1.7;
}
.legal-doc a:not(.btn) {
  color: var(--brand);
}
.legal-doc table {
  font-size: .92rem;
}
.legal-page .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  border-radius: 999px;
  padding: .65rem 1.5rem;
  font-weight: 600;
  /* .legal-doc da color de marca a los enlaces: el botón necesita el blanco también en reposo */
  color: #fff;
}
.legal-page .btn-primary:hover,
.legal-page .btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
.legal-page .alert {
  border-radius: 14px;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .site-nav .nav-link {
    padding-top: .65rem;
    padding-bottom: .65rem;
  }
  .site-nav .btn-amber {
    margin-top: .6rem;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 3.5rem 0;
  }
  .hero {
    padding: 4.5rem 0 3.5rem;
  }
  .cta {
    padding: 2rem 1.5rem;
  }
  .stats-band {
    padding: 2rem 1.25rem;
  }
  .browser--crop img,
  .shot--crop img {
    height: 320px;
  }
  .phone img {
    height: 460px;
  }
  .step {
    padding-left: 0;
    padding-top: 4.2rem;
  }
}

@media (max-width: 767.98px) {
  /* las filas con g-5 usan un gutter de 48 px cuyo margen negativo (24 px) supera
     el padding del contenedor (12 px): en móvil lo igualamos para que el viewport
     de maquetación no se amplíe y todo quede dentro de la anchura del dispositivo */
  .g-5 {
    --bs-gutter-x: 1.5rem;
  }
  /* las entradas laterales de AOS provocan desbordes transitorios en móvil:
     se sustituyen por un fundido simple */
  [data-aos='fade-left'],
  [data-aos='fade-right'] {
    transform: none !important;
    transition-property: opacity !important;
  }
  .brand-img {
    height: 32px;
  }
  .section-logo {
    height: 44px;
  }
  .hero-tile__logo {
    height: 42px;
    min-width: 96px;
  }
}

/* --------------------------------------------------------------------------
   16. Enlaces «ver más» (puentes entre la página única y las landings)
   -------------------------------------------------------------------------- */
.link-more {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.link-more:hover,
.link-more:focus {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   17. Visor de capturas (lightbox nativo con <dialog>)
   -------------------------------------------------------------------------- */
.shot img,
.phone img {
  cursor: zoom-in;
}
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(4, 12, 9, .9);
}
.lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  background: #fff;
}
.lightbox__close {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.lightbox__close:hover,
.lightbox__close:focus {
  background: var(--accent-2);
}

/* --------------------------------------------------------------------------
   18. Preguntas frecuentes (landing de DeCA digital)
   -------------------------------------------------------------------------- */
.faq .accordion-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: .75rem;
  background: #fff;
}
.faq .accordion-button {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}
.faq .accordion-button:not(.collapsed) {
  color: var(--brand);
  background: #EAF3FA;
}
.faq .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.faq .accordion-body {
  color: var(--muted);
  font-size: .95rem;
}

/* --------------------------------------------------------------------------
   19. Landings de producto (páginas hijas con el mismo chrome)
   -------------------------------------------------------------------------- */
.landing-hero {
  padding: 4.5rem 0 3.5rem;
}
.landing-hero .lead {
  max-width: 46rem;
}
.landing-hero .hero-badges {
  margin-top: 1.5rem;
}
.cross-links {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 3rem;
  padding-top: 1.5rem;
}
.cross-links a {
  color: #D3E2EE;
  text-decoration: none;
  font-weight: 600;
}
.cross-links a:hover,
.cross-links a:focus {
  color: var(--accent-2);
}
.section--paper .cross-links {
  border-top-color: var(--line);
}
.section--paper .cross-links a {
  color: var(--brand);
}
.section--paper .cross-links a:hover,
.section--paper .cross-links a:focus {
  color: var(--brand-dark);
}
