/* ========================================== */
/* ESTILOS PÁGINA DE PRODUCTOS - MERTECH      */
/* ========================================== */

.productos-header {
    text-align: center;
    margin-top: 140px;
    margin-bottom: 50px;
    padding: 20px;
}

.productos-header h2 {
    font-size: 42px;
    color: #d32f2f;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.productos-header p {
    font-size: 18px;
    color: #f5f5f5;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Filtros */
.filtros-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(17, 17, 17, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.filtros-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filtros-group label {
    font-weight: bold;
    color: #d32f2f;
}

.filtros-group select {
    padding: 10px 15px;
    border: 2px solid #d32f2f;
    border-radius: 25px;
    background-color: #1a1a1a; /* Select oscuro */
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filtros-group select:hover {
    border-color: #ff6b6b;
}

.contador-productos {
    font-size: 14px;
    color: #ffffff;
    background-color: rgba(211, 47, 47, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
}

/* Grid de productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 60px;
}

/* Tarjeta de producto */
.producto-card {
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(211, 47, 47, 0.3);
    border: 1px solid rgba(211, 47, 47, 0.8);
}

.producto-imagen {
    height: 250px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.5s ease;
    background-color: #ffffff; /* Fondo blanco para que las fotos resalten */
    margin: 10px;
    border-radius: 10px;
}

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

.producto-info {
    padding: 20px;
}

.producto-info h3 {
    color: #ff6b6b; /* Color más claro para contrastar con el fondo oscuro */
    font-size: 18px;
    margin-bottom: 8px;
}

.producto-categoria {
    font-size: 12px;
    color: #d32f2f;
    margin-bottom: 10px;
    font-weight: bold;
}

.producto-info p {
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 15px;
}

.producto-precio {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.btn-comprar {
    background: linear-gradient(135deg, #d32f2f, #8b0000);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-comprar:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.5);
}

.no-productos {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    grid-column: 1 / -1;
}

/* ========================================== */
/* RESPONSIVE - TABLETS                       */
/* ========================================== */

@media (max-width: 768px) {
    .productos-header {
        margin-top: 180px;
    }

    .productos-header h2 { font-size: 32px; }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filtros-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin: 20px;
    }

    .filtros-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filtros-group select { width: 100%; }

    .contador-productos { text-align: center; }
}

/* Responsive header en productos */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
        position: relative;
    }

    header h1 {
        font-size: 20px;
        margin-top: 5px;
    }

    header img {
        height: 40px;
        margin-right: 0;
    }

    header nav {
        margin-left: 0;
        margin-top: 10px;
    }

    .ul-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .li-nav { margin: 0 8px; }
    .li-nav a { font-size: 14px; }

    .productos-header {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .productos-header h2 { font-size: 28px; }
    .productos-header p { font-size: 14px; }

    .filtros-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin: 15px;
        padding: 15px;
    }

    .filtros-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .filtros-group label { font-size: 14px; }

    .filtros-group select {
        width: 100%;
        padding: 8px 12px;
        font-size: 14px;
    }

    .contador-productos {
        text-align: center;
        width: 100%;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 15px;
        margin-bottom: 40px;
    }

    .producto-imagen { height: 160px; }

    .producto-info { padding: 15px; }
    .producto-info h3 { font-size: 14px; }
    .producto-categoria { font-size: 11px; }
    .producto-precio { font-size: 18px; }

    .btn-comprar {
        padding: 10px;
        font-size: 14px;
    }
}

/* ========================================== */
/* RESPONSIVE - CELULARES                     */
/* ========================================== */

@media (max-width: 480px) {
    .productos-header { margin-top: 20px; }
    .productos-header h2 { font-size: 24px; }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .producto-imagen { height: 200px; }
    .producto-info h3 { font-size: 16px; }
    .producto-precio { font-size: 20px; }

    .filtros-group label { font-size: 13px; }
    .filtros-group select { font-size: 13px; }
    .contador-productos { font-size: 12px; }
}

/* ========================================== */
/* PANTALLAS GRANDES                          */
/* ========================================== */

@media (min-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
    }

    #menu { max-width: 1000px; }
}