/* ===== HERO (v1_7) — mobile-first, altura estable entre banners ===== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0s linear 0s;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 32, 46, 0.88) 0%, rgba(23, 32, 46, 0.74) 55%, rgba(23, 32, 46, 0.86) 100%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: min(860px, 100%);
  padding: 40px var(--gutter) 24px;
}

.hero-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: rgba(30, 58, 107, 0.75);
  color: var(--blue-100);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Todos los textos de los banners se apilan en la MISMA celda de grid:
   el bloque siempre mide lo que el texto más largo => el hero no cambia de alto. */
.hero-copy {
  display: grid;
}

.hero-copy-item {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.hero-copy-item.is-active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease 0.15s, visibility 0s linear 0s;
}

.hero-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-text {
  margin: 0;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.55;
  color: #d8dde5;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-actions .btn {
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 15px;
  white-space: nowrap;
}

.hero-actions .btn:only-child { grid-column: 1 / -1; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(196, 202, 212, 0.32);
}

.hero-stat-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.hero-stat-label {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: #b8c0cc;
}

/* Controles en el flujo en móvil: siempre visibles debajo del contenido */
.hero-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--gutter) 24px;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(196, 202, 212, 0.45);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.hero-arrow:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.hero-counter {
  min-width: 52px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.hero-dots {
  display: flex;
  margin-left: auto;
}

/* Área táctil 24x32 con la barrita dibujada adentro (cumple target-size de Lighthouse) */
.hero-dot {
  position: relative;
  width: 24px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hero-dot::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: rgba(196, 202, 212, 0.5);
  transition: background var(--t-base), transform var(--t-base);
}

.hero-dot.is-active::before { background: var(--white); transform: scaleX(1.6); }

@media (max-width: 359px) {
  .hero-actions { grid-template-columns: 1fr; }
  .hero-stat-value { font-size: 18px; }
}

@media (min-width: 600px) {
  .hero-content { gap: 24px; padding-top: 56px; }
  .hero-copy-item { gap: 20px; }
  .hero-tag { font-size: 12px; letter-spacing: 0.08em; padding: 8px 14px; }
  .hero-title { font-size: clamp(34px, 5vw, 46px); }
  .hero-text { font-size: 17px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
  .hero-actions .btn { padding: 14px 26px; }
  .hero-stats { display: flex; gap: clamp(20px, 3vw, 44px); }
  .hero-dots { margin-left: var(--sp-2); }
}

@media (min-width: 900px) {
  .hero {
    min-height: clamp(520px, 74vh, 740px);
    justify-content: center;
  }
  .hero-content {
    gap: var(--sp-6);
    padding: clamp(56px, 6vw, 88px) var(--gutter) clamp(104px, 9vw, 128px);
  }
  .hero-title { font-size: clamp(40px, 4.2vw, 54px); }
  .hero-text { font-size: clamp(16px, 1.3vw, 19px); }
  .hero-stat-value { font-size: 26px; }
  .hero-stat-label { font-size: 12.5px; }
  .hero-controls {
    position: absolute;
    left: 0;
    bottom: clamp(20px, 3vw, 36px);
    padding-bottom: 0;
  }
}

.brands-strip {
  padding-block: clamp(40px, 6vw, 64px);
}

.brands-title {
  margin-bottom: var(--sp-6);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.brands-marquee {
  position: relative;
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding-block: var(--sp-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
 
.brands-track {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: max-content;
  padding-left: clamp(32px, 5vw, 72px);
  animation: brands-scroll 34s linear infinite;
}
 
.brands-marquee:hover .brands-track {
  animation-play-state: paused;
}
 
@keyframes brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - clamp(16px, 2.5vw, 36px))); }
}

.brand-card {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 15vw, 180px);
  height: 76px;
  padding: var(--sp-3);
  border: none;
  border-radius: 0;
  background: transparent;
}

.brand-card img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter var(--t-base), opacity var(--t-base), transform var(--t-base);
}

.brand-card:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

.brand-card span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

.cat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.cat-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--white);
}

.cat-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-card-media img { transform: scale(1.05); }

.cat-card-body { padding: 18px 20px 22px; }

.cat-card-title { margin-bottom: 6px; font-size: 17px; }

.cat-card-text { font-size: 14px; line-height: 1.5; color: var(--gray-600); }

.cat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-3);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-600);
}

.why {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

.why-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.why-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.why-lead {
  max-width: 560px;
  margin-bottom: var(--sp-8);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--gray-600);
}

.why-grid {
  display: grid;
  gap: var(--sp-6);
}

.why-item-rule {
  width: 38px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--gold);
}

.why-item h3 { margin-bottom: var(--sp-2); font-size: 16.5px; }

.why-item p { font-size: 14.5px; line-height: 1.55; color: var(--gray-600); }

.quote-section { background: var(--blue-50); }

.quote-panel {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.quote-title { margin-bottom: var(--sp-4); font-size: clamp(22px, 2.6vw, 32px); }

.quote-text { margin-bottom: var(--sp-6); font-size: 15.5px; line-height: 1.6; color: var(--gray-600); }

.quote-contact {
  margin-top: var(--sp-6);
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-600);
}

.quote-contact strong { color: var(--navy); }

.quote-form { display: flex; flex-direction: column; gap: var(--sp-3); }

.quote-success {
  padding: var(--sp-6);
  border-radius: var(--radius);
  background: var(--blue-100);
  text-align: center;
}

.quote-success-title { margin-bottom: 6px; font-size: 17px; font-weight: 700; color: var(--navy); }

.quote-success-text { font-size: 14px; color: var(--gray-600); }

.testi-grid {
  display: grid;
  gap: var(--sp-5);
  margin-bottom: var(--sp-10);
}

.testi-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-alt);
}

.testi-quote {
  margin-bottom: var(--sp-5);
  font-size: 15px;
  line-height: 1.6;
}

.testi-author { display: flex; align-items: center; gap: 10px; }

.testi-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--blue-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.testi-name { font-size: 14px; font-weight: 700; color: var(--navy); }

.testi-role { font-size: 12.5px; color: var(--gray-600); }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.client-card span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
}

@media (min-width: 600px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .clients-grid { grid-template-columns: repeat(6, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); }
  .why-media, .why-media img { min-height: 340px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
  .quote-panel { grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
  .hero-overlay {
    background: linear-gradient(100deg, var(--navy) 0%, rgba(23, 32, 46, 0.72) 46%, rgba(23, 32, 46, 0.3) 76%, rgba(23, 32, 46, 0.05) 100%);
  }
}

@media (min-width: 1440px) {
  .hero-content { max-width: min(960px, 100%); }
}

.slider-head {
  display: grid;
  gap: var(--sp-5);
  align-items: end;
  margin-bottom: var(--sp-8);
}

.slider-head .section-title { margin-bottom: var(--sp-4); }

.slider-head .section-text { max-width: 560px; }

.slider-nav {
  display: flex;
  gap: var(--sp-2);
}

.slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}

.slider-arrow:hover {
  border-color: var(--blue-600);
  background: var(--blue-700);
  color: var(--white);
}

.slider-arrow[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.slider-arrow[disabled]:hover {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
}

.prod-slider {
  overflow-x: auto;
  overflow-y: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-bottom: var(--sp-3);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.prod-slider::-webkit-scrollbar { display: none; }

.prod-slider-track {
  display: flex;
  gap: var(--sp-5);
  width: max-content;
}

.prod-slide {
  flex: none;
  width: 268px;
  scroll-snap-align: start;
}

.prod-slide .prod-card { height: 100%; }

.slider-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.slider-dots {
  display: flex;
  gap: 7px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--gray-400);
  opacity: 0.45;
  cursor: pointer;
  transition: width var(--t-base), opacity var(--t-base), background var(--t-base);
}

.slider-dot.is-active {
  width: 26px;
  border-radius: 4px;
  background: var(--blue-700);
  opacity: 1;
}

@media (min-width: 600px) {
  .prod-slide { width: 290px; }
}

@media (min-width: 900px) {
  .slider-head { grid-template-columns: 1fr auto; }
  .prod-slide { width: 300px; }
}

@media (min-width: 1280px) {
  .prod-slide { width: 316px; }
}

.banner-full {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--blue-800);
}

.banner-media {
  position: relative;
  min-height: 260px;
  background: var(--navy);
}

.banner-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.banner-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 41, 74, 0.15) 0%, rgba(22, 41, 74, 0.85) 100%);
}

.banner-panel {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
}

.banner-inner {
  width: 100%;
  max-width: 560px;
  padding: clamp(40px, 8vw, 64px) var(--gutter);
}

.banner-eyebrow {
  display: block;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-100);
}

.banner-titulo {
  position: relative;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--white);
}

.banner-titulo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.banner-texto {
  max-width: 460px;
  margin-bottom: var(--sp-8);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: #ccd5e3;
}

@media (min-width: 900px) {
  .banner-full {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: clamp(400px, 42vw, 560px);
  }

  .banner-media,
  .banner-media img { min-height: 100%; }

  .banner-media::after {
    background: linear-gradient(90deg, transparent 0%, rgba(22, 41, 74, 0.25) 62%, var(--blue-800) 100%);
  }

  .banner-panel {
    position: relative;
    margin-left: -1px;
  }

  .banner-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -140px;
    width: 160px;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%);
  }

  .banner-inner {
    position: relative;
    z-index: 1;
    padding-left: clamp(24px, 3vw, 48px);
    padding-right: var(--gutter);
  }
}

@media (min-width: 1440px) {
  .banner-inner { max-width: 620px; }
}

.why-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

@media (prefers-reduced-motion: reduce) {
  .brands-track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding-left: 0;
  }
 
  .brands-track .brand-card[aria-hidden="true"] {
    display: none;
  }
 
  .brands-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
/* ===== Rendimiento (v1_7) ===== */
/* El navegador no calcula estilo/layout de secciones fuera de pantalla hasta acercarse:
   ataca los ~900 ms de "Style & Layout" del reporte. */
/* Solo secciones claramente debajo del pliegue: el hero y la franja de marcas se pintan siempre */
main > section.section:not(#categorias) {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.brands-track { will-change: transform; }
