/* =========================
   Variables & base
========================= */
:root {
  --brand-blue: #0c69c7;
  --brand-orange: #ff8c1a;
  --text: #1f2937;
  --muted: #6b7280;

  /* Tipografía hero (tamaños fluidos) */
  --hero-title-min: 22px;
  --hero-title-fluid: 3.4vw;
  --hero-title-max: 34px;
  --hero-desc-min: 13px;
  --hero-desc-fluid: 1.5vw;
  --hero-desc-max: 15.5px;
  --hero-eyebrow-size: 0.95rem;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto; /* solo html tiene scroll vertical */
  overflow-x: hidden; /* cortamos cualquier scroll horizontal */
}

body {
  font-family: "Poppins", system-ui;
  color: var(--text);
  background: #fff;
  overflow: visible; /* el body no crea su propio scroll */
  height: auto;
}

/* =========================
   Navbar
========================= */
.navbar {
  background: #fff;
  box-shadow: 0 6px 20px rgba(12, 105, 199, 0.08);
  border-bottom: 4px solid rgba(255, 140, 26, 0.25);
}
.navbar .nav-link {
  font-weight: 600;
}
.navbar .nav-link:hover {
  color: var(--brand-blue) !important;
}

.btn-brand {
  background: var(--brand-blue);
  color: #fff;
  border-radius: 14px;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
}
.btn-brand:hover {
  background: #0a58a8;
  color: #fff;
}

.btn-outline-brand {
  border: 2px solid var(--brand-orange);
  color: var(--brand-orange);
  border-radius: 14px;
  font-weight: 600;
}
.btn-outline-brand:hover {
  background: var(--brand-orange);
  color: #fff;
}

/* Logo a la izquierda */
.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ya no centrado */
  flex: 0 0 auto; /* quita el estiramiento */
}
.navbar-logo {
  max-height: 60px;
  width: auto;
}

/* =========================
   Secciones genéricas
========================= */
.section {
  padding: 80px 0;
}
.section-title {
  color: var(--brand-blue);
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* Separador ondulado */
.section-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: 20px;
}

/* ===== Navbar reveal on load + stagger links ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* navbar: entra un poco desde arriba */
.reveal--nav {
  transform: translateY(-12px);
  transition-duration: 0.55s;
}

/* escalonado de los links */
.nav-stagger .nav-link {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.is-visible .nav-stagger .nav-link {
  opacity: 1;
  transform: none;
}
.reveal.is-visible .nav-stagger .nav-link:nth-child(1) {
  transition-delay: 0.1s;
}
.reveal.is-visible .nav-stagger .nav-link:nth-child(2) {
  transition-delay: 0.16s;
}
.reveal.is-visible .nav-stagger .nav-link:nth-child(3) {
  transition-delay: 0.22s;
}
.reveal.is-visible .nav-stagger .nav-link:nth-child(4) {
  transition-delay: 0.28s;
}

/* accesibilidad: respetar reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .nav-stagger .nav-link {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================
   HERO (carrusel + overlay)
========================= */
.hero-slider {
  position: relative;
  height: 68vh !important; /* antes 60vh */
  min-height: 560px; /* antes 72vh + tope; ahora base cómoda */
  max-height: none !important; /* quita el tope de 500px */
  overflow: hidden;
}
/* Desktop grande: aún más alto */
@media (min-width: 1200px) {
  .hero-slider {
    height: 78vh !important;
    min-height: 720px; /* estira bien en pantallas anchas */
  }
}

/* Tablets */
@media (max-width: 991.98px) {
  .hero-slider {
    height: 70vh !important;
    min-height: 600px;
  }
}

/* Móviles */
@media (max-width: 575.98px) {
  .hero-slider {
    height: 64vh !important;
    min-height: 520px;
  }
}
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100% !important;
}

.hero-slider .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  inset: 0;
}
.hero-slider .carousel-item.active {
  opacity: 1;
  position: relative;
}

/* Degradado por encima de las fotos */
.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(12, 105, 199, 0.55) 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 140, 26, 0.55) 100%
  );
  z-index: 2;
}

/* Imágenes uniformes */
.hero-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center 30%; /* antes center; mueve el encuadre hacia arriba */
  display: block;
}

/* Tarjeta centrada del hero */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 18px;
  z-index: 3;
}
.hero-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  max-width: 900px;
  width: 100%;
  text-align: center;
  padding: 28px 22px;
}
.hero-card.hero-compact {
  padding: 22px 20px;
  max-width: 860px;
}
.hero-eyebrow {
  color: var(--brand-blue);
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: var(--hero-eyebrow-size);
}
.hero-title {
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: clamp(
    var(--hero-title-min),
    var(--hero-title-fluid),
    var(--hero-title-max)
  ) !important;
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin: 10px 0 8px;
}
.hero-title-sm {
  font-size: clamp(22px, 4.2vw, 38px);
  line-height: 1.18;
}
.hero-title .blue {
  color: var(--brand-blue);
}
.hero-title .orange {
  color: var(--brand-orange);
}
.hero-desc {
  color: #4b5563;
  font-size: clamp(
    var(--hero-desc-min),
    var(--hero-desc-fluid),
    var(--hero-desc-max)
  ) !important;
  margin: 0 0 0.25rem 0;
}

/* Fila de CTAs + botones sociales */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 6px 8px;
}
.btn-social .ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 8px;
  display: inline-block;
}
.btn-social.wa {
  background: #25d366;
}
.btn-social.wa:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}
.btn-social.ig {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.btn-social.ig:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(221, 42, 123, 0.4);
}
.btn-social.fb {
  background: #1877f2;
}
.btn-social.fb:hover {
  background: #0f62d9;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4);
}
@media (max-width: 480px) {
  .btn-social {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ===== HERO reveal + stagger (enter + leave) ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.995);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* variantes */
.reveal-left {
  transform: translateX(-18px);
}
.reveal-right {
  transform: translateX(18px);
}
.reveal-left.is-visible,
.reveal-right.is-visible {
  transform: none;
}

/* movimiento suave hacia arriba para la tarjeta */
.reveal--rise {
  transform: translateY(20px);
  transition-duration: 0.65s;
}

/* stagger: hijos que entran uno tras otro */
.hero-stagger {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible .hero-stagger {
  opacity: 1;
  transform: none;
}

/* delays escalonados */
.reveal.is-visible .hero-stagger:nth-of-type(1) {
  transition-delay: 0.05s;
}
.reveal.is-visible .hero-stagger:nth-of-type(2) {
  transition-delay: 0.12s;
}
.reveal.is-visible .hero-stagger:nth-of-type(3) {
  transition-delay: 0.18s;
}
.reveal.is-visible .hero-stagger:nth-of-type(4) {
  transition-delay: 0.24s;
}
.reveal.is-visible .hero-stagger:nth-of-type(5) {
  transition-delay: 0.3s;
}

/* respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-stagger {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================
   Servicios (fondo + cards)
========================= */
.services-blue {
  position: relative;
  background: #0c69c7;
  color: #fff;
  overflow: hidden;
  z-index: 1;
}
.services-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 105, 199, 0.55);
  z-index: 2;
}
/* Carrusel de fondo */
.services-bg-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.services-bg-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.services-bg-carousel img.active {
  opacity: 1;
}
/* Contenido principal encima */
.services-blue .container {
  position: relative;
  z-index: 3;
}

/* Tarjeta de servicio (blanca) */
.service-card-white {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  height: 100%;
  color: #1f2937;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 5px solid rgba(0, 0, 0, 0.06);
}
.service-card-white:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}
.service-card-white h5 {
  font-weight: 700;
  margin: 12px 0 10px;
  color: #1f2937;
}
.service-card-white p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0;
}

/* ===== Ajuste colores íconos de servicios ===== */
.service-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 2px solid var(--brand-orange); /* borde naranja */
  margin-bottom: 12px;
}
.service-icon i {
  font-size: 28px;
  color: var(--brand-orange); /* ícono naranja */
}

/* Panel de detalles sobre la card */
.service-card-white {
  position: relative;
  overflow: hidden;
}

.service-summary {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-details {
  position: absolute;
  inset: 0;
  padding: 18px 18px 58px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-details h6 {
  font-weight: 800;
  color: #0c69c7;
  margin-bottom: 10px;
}

.service-details ul {
  padding-left: 18px;
  margin: 0 0 12px;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.25rem;
}

.service-details li {
  margin-bottom: 6px;
}

/* Botón volver (fijo abajo del panel) */
.service-details .sd-close {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 0;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 12px;
}

/* Hover desktop */
.service-card-white:hover .service-details {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.service-card-white:hover .service-summary {
  opacity: 0.1;
  transform: scale(0.98);
}

/* Touch-friendly: cuando la card tenga .open actúa como hover */
.service-card-white.open .service-details {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.service-card-white.open .service-summary {
  opacity: 0.1;
  transform: scale(0.98);
}

/* Ajustes responsive */
@media (max-width: 575.98px) {
  .service-details {
    padding: 16px 14px 56px;
  }
  .service-details ul {
    font-size: 0.93rem;
  }
  .service-details .sd-close {
    padding: 9px 12px;
  }
}

/* ===== Overlay Servicios ===== */
.svc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.svc-overlay[hidden] {
  display: none;
}

.svc-sheet {
  width: 100%;
  max-width: 760px;
  background: #fff;
  color: #111827;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 20px 20px 16px;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  animation: svcIn 0.22s ease forwards;
}
@keyframes svcIn {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.svc-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: #111827;
  color: #fff;
  font-size: 22px;
}

.svc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand-orange);
}
.svc-icon i {
  font-size: 22px;
  color: var(--brand-orange);
}
.svc-header h3 {
  margin: 0;
  font-weight: 800;
  color: #0c69c7;
}

.svc-sub {
  margin: 6px 0 12px;
  color: #475569;
}

.svc-list {
  margin: 0 0 8px;
  padding-left: 20px;
}
.svc-list li {
  margin-bottom: 8px;
  color: #1f2937;
}

.svc-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width: 575.98px) {
  .svc-sheet {
    border-radius: 16px;
    padding: 18px 16px 14px;
  }
  .svc-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .svc-close {
    top: 8px;
    right: 8px;
  }
}

/* =========================
   Productos (carrusel y cards)
========================= */

/* Fondo con marca de agua para la sección de productos */
#productos.section.products {
  padding: 4rem 0 5rem; /* mantén el padding cómodo */

  /* Color base muy claro */
  background-color: #f5f7ff;

  /* Capa 1: velo/blanco suave encima
     Capa 2: imagen de marca de agua repetida */
  background-image: url("../img/bg-compuservicios-watermark.png");

  background-repeat: repeat; /* que se repita como patrón */
  background-size: auto; /* usa el tamaño original de la imagen */
  background-position: center top;
}

/* Contexto general de la sección productos (VENTAS) */
.section.products {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 45%, #f7f9fc 100%);
}

.products .section-title {
  letter-spacing: -0.2px;
  font-weight: 800;
}

/* Títulos y textos dentro de la sección productos */
.section.products .section-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-blue, #004b9b);
}

.section.products p {
  color: #555;
}

/* Estira un poco el contenedor de productos */
#productos .container {
  max-width: 95%;
  padding-left: 32px;
  padding-right: 32px;
}

@media (min-width: 1400px) {
  #productos .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ===== Buscador de productos ===== */
.products-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 360px;
  min-width: 280px;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.products-search i {
  font-size: 1rem;
  margin-right: 0.4rem;
  color: #64748b;
}

.products-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  background: transparent;
  color: #0f172a;
}

.products-search input::placeholder {
  color: #9ca3af;
}

.products-search:focus-within {
  border-color: var(--brand-blue, #2563eb);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3),
    0 18px 35px rgba(15, 23, 42, 0.12);
}

/* ===== Filtros (chips) — con los 3 colores de marca ===== */
.products-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Scroll visible */
.products-filters::-webkit-scrollbar {
  height: 6px;
}
.products-filters::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}
.products-filters::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.products-filters::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* === CHIP estilo marca === */
.products-filters .chip {
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;

  /* Paleta de marca */
  background: #ffffff; /* blanco */
  border: 2px solid var(--brand-blue); /* azul */
  color: var(--brand-blue); /* azul */

  /* Sombra limpia */
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);

  transition: background 0.18s ease-out, color 0.18s ease-out,
    transform 0.18s ease-out, border-color 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

/* Hover con línea naranja */
.products-filters .chip:hover {
  transform: translateY(-2px);
  border-color: var(--brand-orange); /* naranja */
  color: var(--brand-orange);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.22);
}

/* === CHIP ACTIVO (seleccionado) — degradado azul → naranja === */
.products-filters .chip.active {
  background: linear-gradient(
    135deg,
    var(--brand-blue) 0%,
    var(--brand-orange) 100%
  );
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35),
    0 4px 12px rgba(249, 115, 22, 0.25);
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .products-filters .chip {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}

/* ===== Rail / carrusel de productos ===== */
.products-rail {
  margin-top: 2rem;
  padding: 1.75rem 3.25rem;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  position: relative;
  overflow: hidden;
}

/* Vista y pista del carrusel */
.prod-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 8px 0;
  scrollbar-width: none;
}

.prod-viewport::-webkit-scrollbar {
  height: 6px;
}

.prod-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.prod-viewport::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

.prod-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.35rem;
  align-items: stretch;
  padding-bottom: 0.25rem;
}

/* ===== Flechas del carrusel (estilo ecommerce premium) ===== */
.prod-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;

  /* sombra estilo SoyTechno */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);

  transition: transform 0.18s ease-out, background-color 0.18s ease-out,
    box-shadow 0.18s ease-out, opacity 0.18s ease-out;
}

.prod-arrow i {
  font-size: 1.2rem;
  pointer-events: none;
}

/* Hover suave */
.prod-arrow:hover {
  background-color: #f3f4f6;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16), 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Deshabilitadas */
.prod-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: translateY(-50%) scale(1);
}

/* Posiciones */
.prod-arrow.left {
  left: -22px; /* sobresalidas ligeramente hacia afuera */
}

.prod-arrow.right {
  right: -22px;
}

/* Versión “pegada” al borde si quieres */
.products-rail:hover .prod-arrow.left {
  left: 8px;
}
.products-rail:hover .prod-arrow.right {
  right: 8px;
}

/* En pantallas móviles, no se muestran */
@media (max-width: 575.98px) {
  .prod-arrow {
    display: none;
  }
}

/* ===== Card de producto (estilo tipo tienda SoyTechno) ===== */
.product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  flex: 0 0 280px;
  width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    border-color 0.18s ease-out, background-color 0.18s ease-out;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

/* Ajustes responsive ancho card */
@media (min-width: 1400px) {
  .product-card {
    flex: 0 0 300px;
    width: 300px;
  }
}
@media (max-width: 991.98px) {
  .product-card {
    flex: 0 0 240px;
    width: 240px;
  }
}
@media (max-width: 575.98px) {
  .product-card {
    flex: 0 0 220px;
    width: 220px;
  }
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  background-color: #fdfdfd;
}

/* Badge superior tipo “Nuevo / Top” si lo usas */
.badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

/* Thumb / imagen del producto */
.product-thumb {
  aspect-ratio: 4/3;
  width: 100%;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease-out;
}

/* Zoom suave al hacer hover, muy estilo ecommerce */
.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

/* Cuerpo de la card */
.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 12px 16px 14px;
}

/* Título y descripción */
.product-title {
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: calc(1.3em * 2);
}

.product-desc {
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Soporte line-clamp moderno (si el navegador lo soporta) */
@supports (line-clamp: 3) {
  .product-title {
    display: block;
    line-clamp: 2;
  }
  .product-desc {
    display: block;
    line-clamp: 3;
  }
}

/* Meta: precio + otros datos */
.product-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
}

.price {
  font-weight: 800;
  color: #111827;
  font-size: 1rem;
}

/* Botón dentro de la card: formato más limpio */
.product-card .btn-outline-brand {
  border: 1.5px solid var(--brand-blue);
  color: var(--brand-blue);
  font-weight: 600;
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 14px;
  font-size: 0.8rem;
  transition: background-color 0.18s ease-out, color 0.18s ease-out,
    box-shadow 0.18s ease-out, transform 0.18s ease-out;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.16);
  white-space: nowrap;
}

.product-card .btn-outline-brand:hover {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}

/* Por si usas el footer tipo CTA separado */
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 10px;
}

.product-card__price {
  font-weight: 700;
  color: var(--brand-orange, #ea580c);
  font-size: 0.95rem;
}

.product-card__cta {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  border: none;
  background: linear-gradient(
    135deg,
    var(--brand-blue, #2563eb),
    var(--brand-orange, #f97316)
  );
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    filter 0.16s ease-out;
  white-space: nowrap;
}

.product-card__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
}

/* Aseguramos colores correctos dentro de cada card en la sección productos */
#productos .product-card .product-title {
  color: #0f172a;
}
#productos .product-card .product-desc {
  color: #6b7280;
}
#productos .product-card p {
  color: inherit;
}

/* Botón principal de WhatsApp de la sección */
#productos .btn-brand {
  background: #25d366;
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

#productos .btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  background: #1ebe5b;
}

/* ===== FAB de administrador (+) ===== */
.admin-fab {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    opacity 0.15s ease-out;
}

.admin-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.45);
}

@media (max-width: 767.98px) {
  .section.products {
    padding: 3rem 0 4.2rem;
  }

  .products-rail {
    padding: 1.25rem 1.1rem 1.5rem;
    border-radius: 1.15rem;
  }

  .admin-fab {
    width: 50px;
    height: 50px;
    bottom: 1.2rem;
    right: 1.2rem;
  }
}

/* ===== Animaciones de entrada (reveal) para la sección productos ===== */
.products .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.products .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* variantes direccionales usadas arriba */
.products .reveal-left {
  transform: translateX(-18px);
}
.products .reveal-right {
  transform: translateX(18px);
}
.products .reveal-left.is-visible,
.products .reveal-right.is-visible {
  transform: none;
}

/* Animación escalonada por card (inyectadas por JS) */
.product-card.reveal.prod-reveal {
  opacity: 0;
  transform: translateY(12px) scale(0.995);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  transition-delay: calc(var(--reveal-i, 0) * 60ms); /* delay por índice */
}
.product-card.reveal.prod-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================
   MODAL DETALLE DE PRODUCTO
========================= */

html.modal-open,
body.modal-open {
  overflow: hidden !important;
}

/* Contenedor general del modal */
.product-modal {
  position: fixed;
  inset: 0;
  display: none; /* oculto por defecto */
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.product-modal.is-open {
  display: flex; /* se centra con flex */
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

/* Caja blanca del modal */
.product-modal__dialog {
  position: relative;
  max-width: 960px;
  width: 100%;
  max-height: calc(100vh - 32px); /* nunca más alto que la ventana */
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column; /* contenido + footer */
}

/* Botón cerrar */
.product-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #ffffff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  z-index: 2;
}

.product-modal__close i {
  font-size: 0.9rem;
  color: #0f172a;
}

.product-modal__close:hover {
  transform: translateY(-1px);
}

/* Zona scrolleable: imagen + textos */
.product-modal__content {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* ✅ scroll suave en iOS/Android */
}

/* Columna de imagen */
.product-modal__media {
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.product-modal__media img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
}

/* Columna de detalles */
.product-modal__details {
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-modal__tag {
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue, #2563eb);
  font-weight: 700;
}

.product-modal__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.product-modal__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5563;
}

.product-modal__specs {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 10px;
  font-size: 0.86rem;
  color: #4b5563;
}

.product-modal__specs li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.product-modal__specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-blue, #2563eb);
}

/* Footer siempre visible (no scrolleable) */
.product-modal__footer {
  flex: 0 0 auto;
  padding: 12px 18px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-modal__price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-orange, #ea580c);
  white-space: nowrap;
}

/* Botón de WhatsApp (único botón) */
.product-modal__footer .btn-whatsapp {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 767.98px) {
  .product-modal {
    padding: 10px;
  }

  .product-modal__dialog {
    max-width: 480px;
    max-height: calc(100vh - 16px);
  }

  .product-modal__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-modal__media {
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .product-modal__details {
    padding: 14px 14px 16px;
  }

  .product-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-modal__price {
    text-align: left;
  }

  .product-modal__footer .btn-whatsapp {
    width: 100%;
    text-align: center;
  }
}

/* =========================
   Admin (OTP + Productos)
========================= */
.hidden {
  display: none !important;
}

/* Overlays y tarjetas modales */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1050;
}
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1060;
}
.modal-card {
  width: min(350px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
  padding: 20px 18px;
  position: relative;
  color: #0f172a;
}
.modal-card.modal-card-wide {
  width: min(920px, 92vw);
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
  font-size: 22px;
}

/* Tabs dentro del modal admin */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.admin-tabs .tab {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.admin-tabs .tab.active {
  background: rgba(12, 105, 199, 0.08);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* Layout de panel agregar/eliminar */
.admin-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}
@media (max-width: 991.98px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-left .img-preview-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
#imgPreview {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.admin-right .form-group {
  margin-bottom: 12px;
}
.admin-right label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: block;
  color: #0f172a;
}
.admin-right input[type="text"],
.admin-right input[type="file"],
.admin-right input[type="password"],
.admin-right textarea,
.admin-right select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}
.admin-right textarea {
  resize: vertical;
  min-height: 88px;
}
.admin-right input:focus,
.admin-right textarea:focus,
.admin-right select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 22px rgba(12, 105, 199, 0.12);
}

/* Lista para eliminar */
.list-scroll {
  max-height: none;
  overflow: visible;
}
.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 8px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 8px;
}
.admin-item .info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.admin-item .thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  flex: 0 0 auto;
}
.admin-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-item .text {
  min-width: 0;
}
.admin-item .name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-item .desc {
  font-size: 0.82rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-item .btn-danger {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.28);
}
.admin-item .btn-danger:hover {
  background: #dc2626;
}

/* Botón flotante “+” (admin) */
#productos {
  position: relative;
}
.admin-fab {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  z-index: 2;
}
.admin-fab:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  background: #ff8620;
}

/* =========================================================
   Ajustes finales cards de producto (responsive + botón WA)
   ========================================================= */

/* Tamaño base de la card dentro de la sección productos */
.section.products .product-card {
  flex: 0 0 260px;
  max-width: 260px;
}

/* Pantallas muy grandes (más ancho, se ve más “premium”) */
@media (min-width: 1400px) {
  .section.products .product-card {
    flex-basis: 280px;
    max-width: 280px;
  }
}

/* Tablets / laptops pequeñas */
@media (max-width: 991.98px) {
  .section.products .product-card {
    flex-basis: 230px;
    max-width: 230px;
  }
}

/* Móviles pequeños */
@media (max-width: 575.98px) {
  .section.products .product-card {
    flex-basis: 210px;
    max-width: 210px;
  }
}

/* Meta de la card: contenedor del botón de WhatsApp */
.product-meta {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* En móviles, el botón ocupa todo el ancho y se alinea bonito */
@media (max-width: 575.98px) {
  .product-meta {
    justify-content: stretch;
  }

  .product-meta .btn {
    width: 100%;
    text-align: center;
  }
}

/* Opcional: afinar un poquito el botón de WhatsApp dentro de la card */
.product-card .btn-outline-brand {
  border: 2px solid var(--brand-orange, #f97316);
  color: var(--brand-orange, #f97316);
  font-weight: 700;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.25);
  transition: all 0.18s ease-out;
}

.product-card .btn-outline-brand:hover {
  background: linear-gradient(
    135deg,
    var(--brand-blue, #2563eb),
    var(--brand-orange, #f97316)
  );
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* =========================
   Marcas (tiras de logos)
========================= */
.brand-strip {
  --gap: clamp(10px, 2vw, 20px);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: var(--gap);
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
}
.brand-strip.cols-6 .brand-item {
  flex: 0 1 calc((100% - 5 * var(--gap)) / 6);
}
.brand-strip.cols-7 .brand-item {
  flex: 0 1 calc((100% - 6 * var(--gap)) / 7);
}
.brand-strip.cols-8 .brand-item {
  flex: 0 1 calc((100% - 7 * var(--gap)) / 8);
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.2s ease;
}
.brand-logo {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: clamp(32px, 6.5vw, 72px);
  object-fit: contain;
  filter: grayscale(100%) brightness(0.6);
  opacity: 0.8;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
  will-change: transform;
}
.brand-item:hover .brand-logo {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}
#marcas h4 {
  margin: 28px 0 18px;
}
@media (max-width: 575.98px) {
  .brand-strip {
    --gap: 10px;
  }
  .brand-logo {
    max-height: 40px;
  }
}

/* ===== MARCAS: reveal suave con stagger por logo ===== */
.brand-reveal {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--stg, 0) * 70ms);
  will-change: opacity, transform;
}
.brand-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Títulos / párrafos del bloque marcas usan tu .reveal genérico */
#marcas .reveal {
  /* si quieres un toque lateral para títulos largos, ya tienes .reveal-left */
}

/* =========================
   Banda de contacto + redes
========================= */
.brand-band {
  /* degradado con más contraste hacia abajo-derecha */
  background: linear-gradient(135deg, #0c69c7 0%, #0a5bb0 55%, #084a92 100%);
  color: #fff;
  position: relative;
}

/* divisor vertical elegante (solo desktop) */
.brand-band .container {
  position: relative;
}
.split-divider {
  position: absolute;
  top: 24px; /* margen superior dentro de la banda */
  bottom: 24px; /* margen inferior dentro de la banda */
  left: 52%;
  width: 0;
  display: none; /* oculto por defecto (móvil/tablet) */
}
.split-divider::after {
  content: "";
  position: absolute;
  left: -1px; /* centra el “pelo” */
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  /* línea con desvanecido arriba/abajo */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 15%,
    rgba(255, 255, 255, 0.85) 85%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
  opacity: 0.9;
}

/* muéstralo desde ≥992px (Bootstrap lg) */
@media (min-width: 992px) {
  .split-divider {
    display: block;
  }
}

/* Botones sociales (sin cambios, solo por si los necesitas aquí) */
.social-big a {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  background: #fff;
  border: 3px solid var(--brand-orange);
  color: var(--brand-blue);
  font-size: 26px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.social-big a:hover {
  transform: translateY(-4px);
  background: var(--brand-orange);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.icon {
  width: 28px;
  height: 28px;
}

/* ===== Animaciones específicas para contacto ===== */
#contacto .reveal-left {
  transform: translateX(-24px);
}
#contacto .reveal-right {
  transform: translateX(24px);
}
#contacto .reveal,
#contacto .reveal-left,
#contacto .reveal-right {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#contacto .is-visible {
  opacity: 1;
  transform: none;
}

/* =========================
   Footer
========================= */
footer {
  border-top: 1px solid #e5e7eb;
  padding: 18px 0;
  background: #fff;
}

/* Marca de agua */
footer .watermark {
  color: #9ca3af; /* gris más claro */
  font-size: 0.75rem;
  margin-top: 6px;
}
footer .watermark a {
  color: #6b7280;
  text-decoration: none;
}
footer .watermark a:hover {
  color: var(--brand-blue);
}

/* ===== Animación reveal específica footer ===== */
footer.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
footer.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE UNIFICADO (pegar al final del CSS)
   Breakpoints: 1400 / 1200 / 992 / 768 / 576 / 425 / 375 / 360 / 320
========================================================= */

/* ---------- Base ---------- */
.section {
  padding: clamp(48px, 6vw, 80px) 0;
} /* se adapta con el ancho */

/* Contenedor algo más ancho en 1400+ */
@media (min-width: 1400px) {
  .container {
    max-width: 1240px;
  }
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
} /* fijo arriba */
.navbar .container {
  gap: 12px;
}

/* Botón hamburguesa y menú colapsado */
.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.15);
}
.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    padding: 8px 10px;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
  }
  .navbar-nav {
    gap: 4px;
  }
  .navbar .nav-link {
    padding: 10px 12px;
  }
}

/* Compactación progresiva del logo y enlaces */
@media (max-width: 425px) {
  .navbar .container {
    padding-inline: 12px;
    gap: 8px;
  }
  .navbar-logo {
    max-height: 48px;
  }
  .navbar .nav-link {
    padding: 8px 6px;
    font-size: 0.98rem;
  }
}
@media (max-width: 375px) {
  .navbar-logo {
    max-height: 44px;
  }
  .navbar .nav-link {
    padding: 8px 4px;
    font-size: 0.96rem;
  }
}
@media (max-width: 320px) {
  .navbar-logo {
    max-height: 40px;
  }
  .navbar .nav-link {
    padding: 7px 4px;
    font-size: 0.92rem;
  }
}

/* =========================================================
   HERO
========================================================= */
/* Tablets */
@media (max-width: 991.98px) {
  .hero-overlay {
    padding: 56px 16px;
  }
  .hero-card {
    max-width: 760px;
    padding: 22px 18px;
  }
}
/* Móviles medianos */
@media (max-width: 575.98px) {
  .hero-overlay {
    padding: 44px 14px;
  }
  .hero-card {
    max-width: 560px;
    padding: 18px 16px;
  }
  .cta-row {
    gap: 10px;
  }
}
/* 425 px */
@media (max-width: 425px) {
  .hero-slider {
    height: 66vh !important;
    min-height: 480px;
  }
  .hero-img {
    object-position: center 28%;
  }
  .hero-overlay {
    padding: 40px 12px;
  }
  .hero-card {
    max-width: 92vw;
    padding: 16px 14px;
    border-radius: 14px;
  }
  .hero-eyebrow {
    font-size: 0.9rem;
  }
  .hero-title {
    line-height: 1.2;
  }
  .hero-desc {
    font-size: clamp(13px, 3.6vw, 15px) !important;
    margin-bottom: 6px;
  }
  .btn-social {
    width: 100%;
    margin: 4px 0;
    padding: 12px 16px;
  }
}
/* 375 px */
@media (max-width: 375px) {
  .hero-slider {
    height: 62vh !important;
    min-height: 440px;
  }
  .hero-card {
    padding: 14px 12px;
  }
  .btn-social {
    padding: 11px 14px;
  }
}
/* 360 px */
@media (max-width: 360px) {
  .hero-slider {
    height: 62vh !important;
    min-height: 430px;
  }
  .hero-overlay {
    padding: 36px 12px;
  }
  .hero-card {
    max-width: 90vw;
    padding: 14px 12px;
  }
  .hero-title {
    margin: 6px 0 6px;
    line-height: 1.22;
    font-size: clamp(18px, 5.2vw, 22px) !important;
  }
  .hero-desc {
    margin-bottom: 6px;
    font-size: clamp(12px, 3.8vw, 14px) !important;
  }
  .btn-social {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    margin: 6px 0;
  }
  .btn-social .ico {
    width: 18px;
    height: 18px;
    margin-right: 6px;
  }
}
/* 320 px */
@media (max-width: 320px) {
  .hero-slider {
    height: 58vh !important;
    min-height: 410px;
  }
  .hero-overlay {
    padding: 32px 10px;
  }
  .hero-card {
    max-width: 94vw;
    padding: 12px 10px;
  }
  .hero-eyebrow {
    font-size: 0.85rem;
  }
  .btn-social {
    padding: 10px 12px;
  }
}

/* =========================================================
   SERVICIOS
========================================================= */
@media (max-width: 991.98px) {
  .service-card-white {
    padding: 22px 18px;
  }
  .service-card-white p {
    font-size: 0.93rem;
  }
}
@media (max-width: 575.98px) {
  .service-card-white {
    padding: 18px 16px;
  }
  .service-icon {
    width: 56px;
    height: 56px;
  }
  .service-icon i {
    font-size: 24px;
  }
}

/* =========================================================
   PRODUCTOS
========================================================= */
/* Buscador full width en tablet/móvil */
@media (max-width: 991.98px) {
  .products-search {
    width: 100%;
    min-width: 0;
  }
}

/* Filtros (chips) */
.products-filters {
  column-gap: clamp(8px, 1.6vw, 12px);
}
@media (max-width: 575.98px) {
  .products-filters {
    padding: 6px 0;
  }
  .products-filters .chip {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

/* Rail: padding y separación */
.prod-viewport {
  padding: clamp(6px, 1.2vw, 12px) 0;
}
.prod-track {
  gap: clamp(12px, 1.4vw, 16px);
}

/* Flechas posicionadas según ancho */
@media (min-width: 1200px) {
  .prod-arrow.left {
    left: -36px;
  }
  .prod-arrow.right {
    right: -36px;
  }
}
@media (max-width: 1199.98px) {
  .prod-arrow.left {
    left: -24px;
  }
  .prod-arrow.right {
    right: -24px;
  }
}

/* Cards: paddings y tipografías en móvil */
@media (max-width: 991.98px) {
  .product-body {
    padding: 12px 12px 12px;
  }
}
@media (max-width: 575.98px) {
  #productos .container {
    max-width: 100%;
    padding-inline: 12px;
  }
  .products-rail {
    overflow-x: hidden;
  }
  .prod-arrow {
    display: none !important;
  } /* sin flechas en móvil: swipe */
  .product-body {
    padding: 10px 10px 12px;
  }
  .product-title {
    font-size: 0.98rem;
  }
  .product-desc {
    font-size: 0.92rem;
  }
}

/* Anchos de card por breakpoint estrecho */
@media (max-width: 425px) {
  .prod-track {
    gap: 12px;
  }
  .product-card {
    flex: 0 0 220px;
    width: 220px;
  }
  .product-body {
    padding: 10px 10px 12px;
  }
  .product-title {
    font-size: 1rem;
  }
  .product-desc {
    font-size: 0.93rem;
  }
}
@media (max-width: 375px) {
  .product-card {
    flex: 0 0 205px;
    width: 205px;
  }
  .product-title {
    font-size: 0.98rem;
  }
  .product-desc {
    font-size: 0.9rem;
  }
}
@media (max-width: 320px) {
  .product-card {
    flex: 0 0 192px;
    width: 192px;
  }
  .product-title {
    font-size: 0.96rem;
  }
  .product-desc {
    font-size: 0.88rem;
  }
}

/* =========================================================
   MARCAS
========================================================= */
.brand-strip {
  max-width: min(1200px, 96vw);
}
@media (max-width: 991.98px) {
  #marcas h4 {
    margin: 22px 0 14px;
  }
}
@media (max-width: 575.98px) {
  .brand-logo {
    max-height: 36px;
  }
}

/* =========================================================
   BANDA DE CONTACTO / REDES
========================================================= */
@media (max-width: 575.98px) {
  .social-big a {
    width: 56px;
    height: 56px;
    font-size: 22px;
    margin: 0 6px;
  }
}

/* =========================================================
   FOOTER + MARCA DE AGUA
========================================================= */
footer .watermark {
  text-wrap: balance;
}

@media (min-width: 768px) {
  footer .footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  footer .footer-row .left,
  footer .footer-row .right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  footer .watermark {
    margin-top: 0;
    font-size: 0.78rem;
  }
}

/* ===== FIX HERO en móviles (375 / 320) ===== */

/* Seguridad general: el padding cuenta dentro del ancho */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Evitar cualquier scroll horizontal accidental */
html,
body {
  overflow-x: hidden;
}

/* ≤ 575px: forzamos ancho en vw y bajamos padding de la tarjeta */
@media (max-width: 575.98px) {
  .hero-overlay {
    padding: 28px 12px !important; /* menos borde alrededor */
  }
  .hero-overlay .hero-card {
    width: 92vw !important; /* ANCHO REAL EN VW */
    max-width: 92vw !important; /* anula max-width:560px anterior */
    padding: 14px 12px !important; /* compácta */
    border-radius: 14px !important;
  }

  /* Tipografías y spacing más compactos */
  .hero-eyebrow {
    font-size: 0.88rem;
  }
  .hero-title {
    font-size: clamp(20px, 5.2vw, 28px) !important;
    line-height: 1.22;
    margin: 6px 0 6px;
  }
  .hero-desc {
    font-size: clamp(12px, 3.6vw, 14px) !important;
    margin-bottom: 6px;
  }

  /* Botones del hero: 100% y bajitos */
  .btn-social {
    width: 100%;
    margin: 6px 0;
    padding: 10px 14px;
  }

  /* Imagen: sube un pelín el encuadre para que no “corte” */
  .hero-img {
    object-position: center 28% !important;
  }
}

/* ≤ 375px: aún más fino */
@media (max-width: 375px) {
  .hero-overlay {
    padding: 24px 10px !important;
  }
  .hero-overlay .hero-card {
    width: 94vw !important;
    max-width: 94vw !important;
    padding: 12px 10px !important;
  }
  .hero-title {
    font-size: clamp(19px, 5.4vw, 26px) !important;
  }
}

/* ≤ 320px: micro-ajuste reducido */
@media (max-width: 320px) {
  .hero-overlay {
    padding: 18px 8px !important;
  }
  .hero-overlay .hero-card {
    width: 92vw !important; /* antes 95vw */
    max-width: 92vw !important;
    padding: 10px 8px !important; /* más compacto */
    border-radius: 12px !important;
  }
  .hero-eyebrow {
    font-size: 0.8rem;
  }
  .hero-title {
    font-size: clamp(16px, 5.4vw, 22px) !important; /* más pequeño */
    line-height: 1.2;
    margin: 4px 0;
  }
  .hero-desc {
    font-size: clamp(11px, 3.4vw, 13px) !important;
    margin-bottom: 4px;
  }
  .btn-social {
    padding: 9px 10px;
    font-size: 0.92rem;
  }
}

/* --- Mejora de swipe en carrusel de productos --- */

/* El viewport es quien DEBE scrollear horizontalmente */
.prod-viewport {
  overflow-x: auto; /* permite scroll horizontal */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* momentum iOS */
  scroll-behavior: smooth;
  scroll-snap-type: x proximity; /* “imán” suave a cada card */
  touch-action: pan-x; /* prioriza gesto horizontal */
  overscroll-behavior-x: contain; /* evita rebotar toda la página */
  padding-block: clamp(6px, 1.2vw, 12px);
}

/* La pista no debe romper el flujo y debe respetar el ancho de su contenido */
.prod-track {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 1.4vw, 16px);
  width: max-content; /* ancho según las cards */
}

/* Cada card se “engancha” al hacer swipe */
.product-card {
  scroll-snap-align: start;
}

/* Oculta la barra de scroll sin desactivar el scroll */
.prod-viewport {
  scrollbar-width: none; /* Firefox */
}
.prod-viewport::-webkit-scrollbar {
  /* WebKit */
  display: none;
}

/* En móvil: que NO se oculte el scroll del rail contenedor */
@media (max-width: 575.98px) {
  #productos .container {
    max-width: 100%;
    padding-inline: 12px;
  }
  .products-rail {
    overflow: visible; /* quitar el hidden que bloquea gestos */
  }
  .prod-arrow {
    display: none !important;
  } /* sin flechas en móvil */
}

/* Pequeños afinados para hacer el swipe más “fácil” */
@media (max-width: 425px) {
  .product-card {
    flex: 0 0 220px;
    width: 220px;
  }
}
@media (max-width: 375px) {
  .product-card {
    flex: 0 0 205px;
    width: 205px;
  }
}
@media (max-width: 320px) {
  .product-card {
    flex: 0 0 192px;
    width: 192px;
  }
}

/* ===== Modal de producto – versión compacta responsive ===== */

/* Tablets y móviles grandes (<= 768px) */
@media (max-width: 768px) {
  .product-modal__dialog {
    max-width: 420px; /* antes ~480 */
    border-radius: 14px;
  }

  .product-modal__media img {
    max-height: 300px; /* antes 420px */
  }

  .product-modal__details {
    padding: 14px 16px 14px; /* menos padding */
  }

  .product-modal__title {
    font-size: 1.05rem; /* más compacto */
  }

  .product-modal__desc {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .product-modal__specs {
    font-size: 0.84rem;
  }

  .product-modal__footer {
    padding: 10px 14px 14px;
    gap: 8px;
  }

  .product-modal__price {
    font-size: 0.95rem;
  }

  .product-modal__footer .btn-whatsapp {
    padding: 9px 12px;
    font-size: 0.88rem;
  }
}

/* Móviles medianos (<= 425px) */
@media (max-width: 425px) {
  .product-modal__dialog {
    max-width: 360px;
    border-radius: 14px;
  }

  .product-modal__media img {
    max-height: 240px;
  }

  .product-modal__title {
    font-size: 1rem;
  }

  .product-modal__desc {
    font-size: 0.84rem;
  }

  .product-modal__footer .btn-whatsapp {
    font-size: 0.85rem;
  }
}

/* Móviles pequeños (<= 375px) */
@media (max-width: 375px) {
  .product-modal__dialog {
    max-width: 340px;
  }

  .product-modal__media img {
    max-height: 220px;
  }

  .product-modal__details {
    padding: 12px 14px 12px;
  }

  .product-modal__title {
    font-size: 0.95rem;
  }

  .product-modal__footer {
    padding: 10px 12px 14px;
  }
}

/* Micro móviles (<= 320px) */
@media (max-width: 320px) {
  .product-modal__dialog {
    max-width: 300px;
  }

  .product-modal__media img {
    max-height: 200px;
  }

  .product-modal__title {
    font-size: 0.9rem;
  }

  .product-modal__desc,
  .product-modal__specs {
    font-size: 0.8rem;
  }

  .product-modal__footer .btn-whatsapp {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}

/* ========== SOLO <html> PUEDE TENER SCROLL VERTICAL ========== */

/* El scroll vertical vive SOLO en <html> */
html {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
}

/* El body NO crea scroll propio */
body {
  overflow-y: visible !important;
  overflow-x: hidden !important;
  height: auto !important;
}

/* Ninguna sección principal debe tener scroll vertical propio */
body > section,
header,
footer,
.section,
.hero-slider,
.brand-band,
.section.services-blue,
.section.products {
  overflow-y: visible !important;
}
