/* ============ RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ============ TOPBAR & HEADER UNIFICADOS ============ */
.top-bar,
.main-header {
    background: #000000;
    color: #ffffff;
    width: 100%;
}

/* ===== TOPBAR ===== */
.top-bar {
    padding: 6px 20px;
    font-size: 14px;
    display: flex;
    justify-content: center;
}

.topbar-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

/* ===== HEADER ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container-header {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    width: clamp(110px, 14vw, 200px);
    height: auto;
}

/* Navbar Escritorio */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color .3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: #25d366;
}


/* Botón Hamburguesa (Oculto en escritorio) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #ffffff;
    cursor: pointer;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {

    /* Ocultamos la topbar en móvil */
    .top-bar {
        display: none;
    }

    /* Logo centrado y menú escondido */
    .navbar ul {
        display: none;
    }

    .container-header {
        justify-content: center;
    }

    /* Aparece el menú hamburguesa */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
    }
}

/* ================= FOOTER ================= */
.footer {
    background: #000;
    color: #fff;
    padding-top: 60px;
    font-family: Arial, sans-serif;
}

/* Grid general centrado */
.footer-content {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
    justify-items: center;
    text-align: center;
    padding-bottom: 50px;
}

/* === Columna 1: Logo + Nav === */
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    width: clamp(130px, 15vw, 200px);
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.footer-nav a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

/* Estado activo + hover */
.footer-nav a:hover,
.footer-nav a.active {
    color: #00b7ff;
    text-decoration: underline;
}

/* === Columna 2: Mapa === */
.footer-map h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer-map iframe {
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
    height: 250px;
}

.footer-map-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: .3s;
}

.footer-map-btn:hover {
    background: #fff;
    color: #000;
}

/* === Columna 3: Contacto === */
.footer-contact-box {
    background: #111;
    padding: 25px;
    border-radius: 14px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-contact-box h4 {
    color: #00b7ff;
    margin-bottom: 14px;
}

.footer-contact-box p {
    margin: 6px 0;
}

/* Botón WhatsApp */
.footer-wpp {
    background: #25d366;
    color: #000;
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-wpp:hover {
    background: #1fa855;
}

/* Copyright */
.footer-bottom {
    background: #080808;
    text-align: center;
    padding: 16px 0;
    font-size: 14px;
}


/* ================== RESPONSIVE ================== */

/* Laptops 1300px hacia abajo */
@media (max-width: 1300px) {
    .footer-content {
        max-width: 1100px;
    }
}

/* Laptops pequeñas */
@media (max-width: 1100px) {
    .footer-content {
        gap: 30px;
    }
}

/* Tablets horizontales */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-map iframe {
        height: 230px;
    }
}

/* Tablets verticales */
@media (max-width: 820px) {
    .footer-content {
        gap: 25px;
    }
}

/* Celulares grandes */
@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column,
    .footer-contact-box,
    .footer-map {
        width: 100%;
        max-width: 400px;
        margin: auto;
    }
}

/* Celulares medianos */
@media (max-width: 600px) {
    .footer-map iframe {
        height: 210px;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-nav a {
        font-size: 0.95rem;
    }
}

/* Celulares chicos */
@media (max-width: 480px) {
    .footer-map iframe {
        height: 200px;
    }

    .footer-contact-box {
        padding: 18px;
    }
}

/* MINIS (Galaxy Mini, iPhone 5, etc.) */
@media (max-width: 380px) {
    .footer-contact-box p {
        font-size: 0.85rem;
    }

    .footer-nav a {
        font-size: 0.85rem;
    }
}

/* MUY MUY pequeños */
@media (max-width: 330px) {
    .footer-logo img {
        width: 120px;
    }

    .footer-contact-box {
        padding: 15px;
    }
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
    z-index: 1002;
}

/* Estado activo del botón */
.menu-toggle.active {
    transform: rotate(90deg);
}

/* Overlay del menú móvil */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000e8;
    padding-top: 100px;
    text-align: center;
    flex-direction: column;
    gap: 20px;
    z-index: 1001;
}

.mobile-menu a {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    padding: 10px;
}

.mobile-menu a:hover {
    color: #25d366;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {

    .navbar { display: none; }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
    }

    /* Activar menú cuando está abierto */
    .mobile-menu.active {
        display: flex;
    }
}

/* ==============================
   SECCIÓN PRODUCTOS
================================ */


.productos {
    padding: 80px 20px;
    background: #f5f5f5;
    text-align: center;
}

.productos-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.productos-subtitle {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 50px;
}

.productos-layout {
    display: grid;
    grid-template-columns: 250px 1fr; /* panel izquierdo + productos */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* PANEL DE MARCAS */
.productos-filtros {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
    align-self: start;
    height: auto;
}

.productos-filtros h3 {
    margin-bottom: 15px;
}

.productos-filtros ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.productos-filtros li {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* GRID DE PRODUCTOS */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* TARJETAS DE PRODUCTO */
.producto-card {
    background: #fff;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(45px);

    display: flex;
    flex-direction: column;
}

.producto-card.show {
    opacity: 1;
    transform: translateY(0);
}

.producto-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}

.producto-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* BOTÓN WHATSAPP */
.btn-wpp {
    display: inline-block;
    padding: 12px 18px;
    background: #25d366;
    color: #000;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    margin-top: auto;
}

.btn-wpp:hover {
    background: #1fa855;
    transform: translateY(-2px);
}

/* HOVER TARJETA */
.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* ================= RESPONSIVE ================= */

/* Desktop grande */
@media(max-width: 1300px){
    .productos-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop pequeño / laptops */
@media(max-width: 1200px){
    .productos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets horizontales */
@media(max-width: 992px){
    .productos-grid { grid-template-columns: repeat(2, 1fr); }
    .productos-layout { grid-template-columns: 200px 1fr; gap: 20px; }
}

/* Tablets verticales / móviles grandes */
@media(max-width: 768px){
    .productos-layout { 
        grid-template-columns: 1fr; 
    }
    .productos-filtros { 
        margin-bottom: 20px; 
    }

    /* Grid de productos: 2 por fila en celulares */
    .productos-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }

    /* Panel de marcas: 3 columnas */
    .productos-filtros ul { 
        grid-template-columns: repeat(3, 1fr); 
        display: grid; 
        gap: 12px; 
    }
    .productos-filtros li { width: auto; }
}

/* Celulares medianos */
@media(max-width: 480px){
    .productos-filtros ul { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* Opcional: mantener 2 por fila en celulares muy pequeños también */
    .productos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Celulares muy pequeños */
@media(max-width: 350px){
    .productos-filtros ul { grid-template-columns: 1fr; gap: 8px; }
    .producto-card h3 { font-size: 1rem; }
    .btn-wpp { font-size: 0.9rem; padding: 10px 14px; }

    /* Aquí podemos pasar a 1 por fila si la pantalla es demasiado chica */
    .productos-grid { grid-template-columns: 1fr; gap: 10px; }
}


.productos {
  padding: 80px 20px;
  background: #f4f4f4;
}

.productos-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.productos-subtitle {
  text-align: center;
  margin-bottom: 50px;
  color: #555;
}



/* FILTROS */
.productos-filtros {
  width: 260px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}

.productos-filtros h3 {
  margin-bottom: 10px;
}

.btn-limpiar-filtros {
  width: 100%;
  padding: 10px;
  background: #b80000;
  color: white;
  border: none;
  border-radius: 5px;
  margin-bottom: 15px;
  cursor: pointer;
}

.marca-item {
  border-bottom: 1px solid #ddd;
}

.marca-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px 0;
}

.modelos {
  display: none;
  padding-left: 10px;
}

.marca-item.activa .modelos {
  display: block;
}

/* GRID */
.productos-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* CARD */
.producto-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.producto-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.producto-card h3 {
  margin: 14px 0;
  flex-grow: 1;
  font-size: 1rem;
}

/* BOTÓN */
.btn-wpp {
  background: #25d366;
  color: #000;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .productos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .productos-layout {
    flex-direction: column;
  }

  .productos-filtros {
    width: 100%;
  }

  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================== FIX FILTROS RESPONSIVE ================== */

@media (max-width: 768px) {

  .productos-layout {
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
  }

  .productos-filtros {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Marcas en grilla ordenada */
  .productos-filtros ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .marca-item {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
  }

  .marca-header {
    width: 100%;
    justify-content: space-between;
    font-size: 0.95rem;
  }

  .modelos {
    padding-left: 0;
    margin-top: 8px;
  }

  .modelos li {
    font-size: 0.85rem;
    padding: 4px 0;
  }

  /* Evita cualquier desborde horizontal */
  body {
    overflow-x: hidden;
  }
}


/* Mobile chico */
@media (max-width: 480px) {

  .productos-filtros ul {
    grid-template-columns: 1fr;
  }

  .marca-header {
    font-size: 0.9rem;
  }

  .modelos li {
    font-size: 0.8rem;
  }
}

/* ================== FILTROS RESPONSIVE PROLIJOS ================== */
@media (max-width: 768px) {

  .productos-layout {
    grid-template-columns: 1fr;
  }

  .productos-filtros {
    width: 100%;
  }

  /* Contenedor de filtros en filas flexibles */
  .productos-filtros ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }

  /* Cada filtro como "botoncito" */
  .productos-filtros li {
    width: auto;
    background: #f1f1f1;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .productos-filtros input {
    margin: 0;
    cursor: pointer;
  }
}

/* Celulares chicos */
@media (max-width: 480px) {

  .productos-filtros li {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}

.btn-marca {
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #111;
}

.btn-marca:hover {
    color: #25d366;
}

.btn-marca.activo {
    color: #25d366;
    text-decoration: underline;
}


