@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Saira:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap");
/*
+-----------------------------------------------
+*********** VARIABLES Y DISEÑO BASE ***********
+-----------------------------------------------
+*/

:root {
  /* Paleta Cromática Premium - TEMA CLARO */
  --primary: #0056b3;
  --primary-light: #0088ff;
  --primary-hover: #004494;
  --secondary: #0095ff;
  --accent: #16a34a;
  --bg-main: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-table: #131416;
  --white: #ffffff;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-700: #334155;
  --shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --radius-md: 12px;
  --radius-lg: 24px;

  /* Efectos & Glasmorfismo (Versión Clara) */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.05);
  --blur: blur(12px);

  /* Tipografía & Layout */
  --font-main: "Outfit", sans-serif;
  --font-marquee: "Saira", sans-serif;
  --font-lora: "Lora", sans-serif;
  --header-h: 150px;
  --nav-h: 60px;
  --total-header-h: 230px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  /* Sombra suave para fondos claros */

  /* Variables de Tabla Excel */
  --table-border: #e2e8f0;
  --table-header-bg: #f8fafc;
  --row-hover: #f1f5f9;
}

/* Reset Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.site-header-wrapper {
  position: relative;
  /* Contenedor para anclar el menú móvil absoluto */
}

.header-container {
  width: 100%;
  min-height: var(--header-h);
  background-image: url("../img/background-instelser.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: var(--blur);
  position: relative;
  /* Cambiado de fixed a relative para modo estático */
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.header-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 40px;
  transform: translateY(-5px);
  transition: var(--transition);
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bg-main);
}

.contact-phone i {
  color: var(--bg-main);
}

.contact-social {
  display: flex;
  gap: 12px;
}

.contact-social a {
  color: var(--gray-200);
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: 0 5px 0 5px;
  border: 1px solid var(--bg-main);
  border-radius: 25%;
}

.contact-social a:hover {
  transform: translateY(-5px);
}

.facebook:hover {
  background-color: #0a1efc;
  color: var(--gray-200);
}

.instagram:hover {
  background: linear-gradient(45deg,
      #f09433 5%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%);
  color: var(--gray-200);
}

.telegram:hover {
  background-color: #0088cc;
  color: var(--gray-200);
}

.whatsapp:hover {
  color: white;
  background: #16a34a;
}

/* ============================================
   ESTILOS DEL MARQUEE (DESPLAZAMIENTO)
   ============================================ */

.header-marque {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 0 40px;
  margin-top: calc(0.5rem + 10px);
  pointer-events: none;
}

.marquee-text {
  padding: 10px 20px;
  max-width: 50%;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-marquee);
  text-align: right;
  line-height: 1.4;
  border-radius: 4px 0 0 4px;
  margin-top: 10px;
}

@keyframes marquee-animation {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ============================================
   NAVEGACIÓN PRINCIPAL (TEMA CLARO)
   ============================================ */

.main-nav {
  position: relative;
  /* Cambiado de fixed a relative */
  width: 100%;
  height: var(--nav-h);
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  border-bottom: 2px solid var(--primary);
  backdrop-filter: var(--blur);
  z-index: 99;
}

.nav-menu {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  padding: 0 20px;
}

.nav-menu>li {
  position: relative;
}

.nav-menu>li>a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 18px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu>li>a i {
  font-size: 1.1rem;
  color: var(--primary);
}

.nav-menu>li>a .submenu-icon {
  display: none !important;
  transition: var(--transition);
}

.nav-menu>li:hover>a {
  color: var(--primary);
  background: rgba(0, 86, 179, 0.05);
}

/* SUBMENÚS (TEMA CLARO) */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  border-radius: 0 0 12px 12px;
  list-style: none;
}

.submenu li a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 25px;
  display: block;
  font-size: 0.9rem;
  transition: var(--transition);
  text-transform: uppercase;
}

.submenu li a:hover {
  background: var(--bg-soft);
  color: var(--primary);
  padding-left: 30px;
}

.nav-menu>li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================
   TOGGLE MENU MÓVIL
   ============================================ */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-main);
  border-radius: 10px;
  transition: var(--transition);
  background-color: var(--text-table);
}

/* Animación Hamburguesa -> X */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
  background-color: #0f172a;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
  background-color: #0f172a;
}

/* ============================================
   ESTILOS GENERALES Y COMPONENTES
   ============================================ */

.section-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(0, 86, 179, 0.08);
  border: 1px solid rgba(0, 86, 179, 0.1);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================
   FOOTER (TEMA CLARO)
   ============================================ */

.footer {
  width: 100%;
  background: var(--bg-soft);
  border-top: 1px solid var(--gray-200);
  padding: 15px 0 40px;
  margin-top: 0;
}

.footer-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 0 40px;
}

/* Fila Superior: Localidades */
.footer-locations {
  width: 100%;
}

/* Fila Inferior: 2 Columnas */
.footer-secondary-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer-section h3 {
  color: var(--text-main);
  margin-bottom: 30px;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  position: relative;
  font-weight: 800;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-section ul li:hover {
  color: var(--primary);
  padding-left: 5px;
  cursor: default;
}

.locations-text {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: justify;
}

.locations-text span {
  transition: var(--transition);
}

.locations-text span:hover {
  color: var(--primary);
  cursor: default;
}

.locations-texto {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.6rem;
  text-align: justify;
}

.locations-texto span {
  transition: var(--transition);
}

.locations-texto span:hover {
  color: var(--primary);
  cursor: default;
}

.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 30px 40px 0;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CATÁLOGO DE PRODUCTOS (GRID 5x5)
   ============================================ */

.products {
  padding: 30px 20px;
  background-color: var(--white);
}

.products-header {
  max-width: 1400px;
  margin: 0 auto 20px;
  text-align: center;
}

.products-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 15px;
}

.products-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.products-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.product-card {
  background: var(--white);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* .product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
} */

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  font-size: 0.8rem;
  font-weight: 500;
  border: 2px dashed var(--gray-700);
  position: relative;
  transition: var(--transition);
}

.product-image-placeholder::after {
  content: "Insertar Imagen";
  position: absolute;
  z-index: 1;
}

.product-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ajusta la imagen sin deformarla */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  /* Se coloca por encima del texto de 'Insertar Imagen' */
  border-radius: 10px;
  background-color: var(--white);
  /* Para ocultar el texto si la imagen tiene transparencia */
}

.product-card:hover .product-image-placeholder {
  background-color: rgba(0, 86, 179, 0.05);
  border-color: var(--primary-light);
  color: var(--primary);
}

.product-brand {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   BOTONES FLOTANTES
   ============================================ */

#btnScrollTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  outline: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  text-align: center;
  line-height: 50px;
  box-shadow: 0 10px 15px -3px rgba(0, 86, 179, 0.2);
  transition: var(--transition);
}

#btnScrollTop:hover {
  background-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 15px 25px -5px rgba(0, 86, 179, 0.4);
}

.whatsapp-float {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .whatsapp-float {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2.2rem;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    transition: var(--transition);
  }

  .whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(37, 211, 102, 0.5);
    color: var(--white);
  }

  :root {
    --header-h: auto;
  }

  .header-container {
    z-index: 2500;
  }

  .header-container.active {
    position: fixed;
    /* Fix header only when menu is open */
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: none;
    border-bottom: 1px solid var(--gray-200);
    z-index: 3000;
    /* Asegurar que esté por encima del menú (2400) */
  }

  .header-content {
    justify-content: flex-end;
    /* Alineación a la derecha */
  }

  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
    /* Forzar posición a la derecha */
  }

  .header-contact {
    transform: translateY(0);
    gap: 20px;
  }

  /* Navegación Móvil (Tema Claro) */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 110px);
    background: var(--white);
    z-index: 1500;
    overflow-y: auto;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow);
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.active {
    display: block;
    position: fixed;
    /* Se vuelve fijo para cubrir toda la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    padding-top: 100px;
    /* Espacio para el header fijo */
    animation: fadeIn 0.3s ease;
    z-index: 2400;
    /* Debajo del header activo (2500) */
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .nav-menu>li {
    width: 100%;
    text-align: center;
  }

  .nav-menu>li>a {
    padding: 25px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text-main);
  }

  .submenu {
    position: relative;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
    background: var(--bg-soft);
    box-shadow: none;
    border: none;
    width: 100%;
  }

  .nav-menu>li.active .submenu {
    display: block;
  }

  .nav-menu>li>a .submenu-icon {
    display: block !important;
    margin-left: auto;
  }

  .has-submenu.active .submenu-icon {
    transform: rotate(180deg);
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .stat-item strong {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header-contact {
    display: none;
  }

  .header-marque {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-secondary-rows {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .locations-texto {
    font-size: 0.42rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.excel-container {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-700);
  margin-top: 20px;
  font-family: var(--font-lora);
}

.main-excel-header {
  background: var(--primary);
  color: white;
  padding: 25px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table-labels {
  display: grid;
  grid-template-columns: 1fr 7fr 190px;
  background: var(--table-header-bg);
  border-bottom: 2px solid var(--table-border);
  padding: 15px 25px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.table-row {
  border-bottom: 1px solid var(--gray-700);
  transition: background 0.3s ease;
}

.table-row:hover {
  background: var(--row-hover);
}

.row-visible {
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  padding: 0 15px;
  align-items: stretch;
}

.model-cell {
  font-weight: 700;
  color: var(--primary);
  border-right: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
}

.desc-cell {
  color: var(--text-table);
  font-size: 0.9rem;
  font-weight: 800;
  border-right: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  padding: 10px 15px;
}

.row-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 0 40px;
}

.table-row.active {
  background: white;
}

.table-row.active .row-details {
  max-height: 1000px;
  opacity: 1;
  padding: 30px 40px;
  border-top: 1px dashed var(--gray-700);
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--table-border);
}

.specs-list {
  list-style: none;
  padding: 0;
}

.specs-list li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.specs-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  margin-right: 10px;
}

.info-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--table-border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.info-compatibilidad {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--table-border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.info-letrero {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--table-border);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.btn-excel {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  width: fit-content;
  justify-self: center;
  min-width: 100px;
  align-self: center;
}

.btn-excel:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-less {
  background: var(--gray-400);
  margin-top: 20px;
}

.table-row.active .btn-more {
  display: none;
}

@media (max-width: 1024px) {
  .row-visible {
    grid-template-columns: 1fr 4fr 150px;
    padding: 0 10px;
  }

  .row-details {
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px 30px;
  }

  .main-excel-header {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .table-labels {
    display: none;
  }

  .row-visible,
  .row-details {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .row-details {
    text-align: center;
    gap: 15px;
  }

  .table-row.active .row-details {
    max-height: 2500px;
    padding: 20px;
  }

  .model-cell {
    border-right: none;
    padding-right: 0;
  }

  .desc-cell {
    font-size: 0.95rem;
    border-right: none;
    padding: 0;
  }

  .product-img {
    height: auto;
    max-height: 250px;
    margin: 0 auto;
  }

  .main-excel-header {
    font-size: 1rem;
  }
}

.tag-container {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-soft);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary);
  color: var(--white);
}

.tag-instalacion {
  border-color: #2563eb;
  color: #2563eb;
}

.tag-instalacion:hover {
  background: #2563eb;
  color: white;
}

.tag-reparacion {
  border-color: #d97706;
  color: #d97706;
}

.tag-reparacion:hover {
  background: #d97706;
  color: white;
}

.tag-venta {
  border-color: #059669;
  color: #059669;
}

.tag-venta:hover {
  background: #059669;
  color: white;
}

.tag-servicio {
  border-color: #7c3aed;
  color: #7c3aed;
}

.tag-servicio:hover {
  background: #7c3aed;
  color: white;
}

.tag-distribuidor {
  border-color: #00be0a;
  color: #00be0a;
}

.tag-distribuidor:hover {
  background: #00be0a;
  color: white;
}

/* ============================================
   ESTILOS DE PRODUCTO INDEPENDIENTE (KXNS500)
   ============================================ */

.producto-independiente {
  padding: 10px 20px;
  background-color: var(--white);
}

.contenedor-producto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg-main, #ffffff);
  border-radius: 12px;
  font-family: var(--font-main, "Outfit", sans-serif);
}

.columna-imagen {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  /* Centra la imagen y el texto horizontalmente */
  width: 100%;
}

.texto-imagen {
  font-size: 1.1rem;
}

.contenedor-imagen {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  border: 1px solid var(--gray-700, #334155);
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.imagen-producto {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.3s ease;
}

.columna-info {
  display: flex;
  flex-direction: column;
}

.titulo-producto {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin-bottom: 10px;
  line-height: 1.2;
}

.categorias-producto {
  font-size: 0.9rem;
  color: var(--text-muted, #64748b);
}

.categoria-etiqueta {
  color: var(--primary-light);
  font-weight: 600;
}

.contenedor-pestanas {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.input-pestana {
  display: none;
}

.lista-pestanas {
  display: flex;
  border-bottom: 2px solid var(--gray-700, #334155);
  margin-bottom: 20px;
}

.boton-pestana {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.boton-pestana:hover {
  color: var(--primary, #0056b3);
}

#pestana-descripcion:checked~.lista-pestanas #btn-desc,
#pestana-caracteristicas:checked~.lista-pestanas #btn-caract,
#pestana-compatibilidad:checked~.lista-pestanas #btn-compat {
  color: var(--primary, #0056b3);
  border-bottom-color: var(--primary, #0056b3);
}

.caja-contenido {
  background: #ffffff;
  border-radius: 8px;
}

.bloque-contenido {
  display: none;
  animation: fadeInEffect 0.3s ease;
}

.bloque-contenido h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin-bottom: 15px;
}

.bloque-contenido p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-table, #131416);
  margin-bottom: 15px;
}

.lista-especificaciones,
.lista-compatibilidad {
  list-style: none;
  padding: 0;
}

.lista-especificaciones li,
.lista-compatibilidad li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-table, #131416);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.lista-especificaciones li::before,
.lista-compatibilidad li::before {
  content: "•";
  color: var(--primary, #0056b3);
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 10px;
  line-height: 1;
}

@keyframes fadeInEffect {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#pestana-descripcion:checked~.caja-contenido #contenido-descripcion,
#pestana-caracteristicas:checked~.caja-contenido #contenido-caracteristicas,
#pestana-compatibilidad:checked~.caja-contenido #contenido-compatibilidad {
  display: block;
}

@media (max-width: 768px) {
  .contenedor-producto {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 20px auto;
  }

  .lista-pestanas {
    flex-wrap: wrap;
  }

  .boton-pestana {
    padding: 10px 16px;
    font-size: 0.85rem;
    flex-grow: 1;
    text-align: center;
  }

  .titulo-producto {
    font-size: 1.8rem;
  }
}

/* ============================================
   ESTILOS DEL CARRUSEL DE PRODUCTOS
   ============================================ */
/* Contenedor principal del carrusel */

.seccion-carrusel {
  padding: 20px 0px 0px 0px;
  overflow: hidden;
  /* Evita desbordamiento horizontal en la pantalla */
}

.titulo-seccion {
  text-align: center;
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Contenedor máscara del Carrusel */
.carrusel-contenedor {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* La pista que contiene todas las tarjetas */
.carrusel-pista {
  display: flex;
  width: max-content;
  gap: 30px;
  /* Ejecuta la animación de scroll continuo */
  animation: desplazamientoContinuo 35s linear infinite;
}

/* DETENER AL PASAR EL MOUSE (HOVER) */
.carrusel-contenedor:hover .carrusel-pista {
  animation-play-state: paused;
}

/* Diseño de la Tarjeta del Producto */
.tarjeta-producto {
  width: 280px;
  /* Tamaño ideal y responsivo para carruseles masivos */
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto individual a la tarjeta activa */
.tarjeta-producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

/* Contenedor cuadrado de la imagen */
.contenedor-imagen {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagen-producto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tarjeta-producto:hover .imagen-producto {
  transform: scale(1.05);
}

/* Información del producto abajo de la imagen */
.info-producto {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nombre-producto {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.descripcion-producto {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

/* ================= ANIMACIÓN DE MOVIMIENTO ================= */
@keyframes desplazamientoContinuo {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Se traslada exactamente el 50% porque la segunda mitad es idéntica */
    transform: translateX(calc(-63% - 15px));
    /* Resta la mitad del gap para evitar saltos */
  }
}

/* ================= ADAPTACIÓN RESPONSIVA ================= */
@media (max-width: 768px) {
  .titulo-seccion {
    font-size: 1.6rem;
    padding: 0 20px;
  }

  .tarjeta-producto {
    width: 230px;
    /* Reducimos levemente el tamaño en móviles para mejor visualización */
  }

  .nombre-producto {
    font-size: 1rem;
  }

  .carrusel-pista {
    animation-duration: 25s;
    /* Un poco más rápido en pantallas chicas para dinamismo */
  }
}

/* ============================================
   ESTILOS DE BOTONES ANIMADOS (ESPAÑOL)
   ============================================ */

.contenedor-botones-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  padding: 40px 10px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.boton:link,
.boton:visited {
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding: 8px 4px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s, box-shadow .3s;
  /* Optimizado */
  font-weight: 700;
  font-size: 0.8rem;
  /* Letra pequeña para encajar 12 por fila */
  text-align: center;
  border: 1px solid #e2e8f0;
  line-height: 1.2;
}

.boton-blanco {
  background: #fff;
  color: #0056b3;
}

.boton:hover {
  box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.boton:active {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.boton-animacion-inferior-1 {
  animation: venirDesdeAbajo 0.6s ease-out backwards;
}

.boton::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50px;
  z-index: -1;
  transition: transform .4s, opacity .4s;
  /* Optimizado */
}

.boton-blanco::after {
  background: #fff;
}

.boton-animacion-1:hover::after {
  transform: scaleX(1.05) scaleY(1.15);
  /* Efecto más sutil */
  opacity: 0;
}

@keyframes venirDesdeAbajo {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividad adaptativa */
@media (max-width: 1200px) {
  .contenedor-botones-grid {
    grid-template-columns: repeat(6, 2fr);
  }
}

@media (max-width: 768px) {
  .contenedor-botones-grid {
    grid-template-columns: repeat(3, 2fr);
  }
}

@media (max-width: 480px) {
  .contenedor-botones-grid {
    grid-template-columns: repeat(2, 2fr);
  }
}