/* ============================================
   ESTILOS PRINCIPALES DE LA TIENDA
   ============================================ */

/* Grilla de productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Tarjeta de producto */
.producto-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}
.producto-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Enlace que rodea imagen, título y descripción */
.producto-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

/* Imagen */
.producto-imagen {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
}
.producto-imagen img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

/* Título */
.producto-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
    color: #ffffff;
    text-align: center;
}

/* Descripción corta - SIN subrayado ni azul */
.desc-corta {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc !important;
    text-decoration: none !important;
    margin: 10px 0;
    text-align: center;
}
.desc-corta a,
.desc-corta a:link,
.desc-corta a:visited,
.desc-corta a:hover,
.desc-corta a:active {
    text-decoration: none !important;
    color: #ccc !important;
}

/* Precio */
.precio {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6a00;
    margin: 15px 0;
    text-align: center;
}

/* Botones generales */
.btn-comprar, .btn-whatsapp, .btn-finalizar, .btn-confirmar, .btn-vaciar {
    display: inline-block;
    background: #ff6a00;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 40px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}
.btn-whatsapp {
    background: #25D366;
}
.btn-vaciar {
    background: #666;
}
.btn-comprar:hover, .btn-whatsapp:hover, .btn-finalizar:hover, .btn-confirmar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,106,0,0.4);
}
.btn-vaciar:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Input cantidad */
.cantidad-input {
    width: 70px;
    padding: 8px;
    margin-right: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    text-align: center;
}
.producto-card form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Tabla del carrito */
.carrito-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.carrito-tabla th, .carrito-tabla td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.carrito-total {
    text-align: right;
    font-size: 1.5rem;
    margin: 20px 0;
}
.carrito-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}
.btn-eliminar {
    text-decoration: none;
    font-size: 1.2rem;
    color: #ff6a00;
}
.btn-eliminar:hover {
    color: #ff8c42;
}

/* Formulario checkout */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
}
form button.btn-confirmar {
    width: 100%;
    margin-top: 20px;
}

/* Página de detalle de producto */
.producto-detalle {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}
.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.galeria .imagen-principal {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
}
.miniaturas {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.miniaturas img, .video-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
}
.video-thumb {
    background: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info h1 {
    font-size: 2rem;
}
.descripcion-larga {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .detalle-grid {
        grid-template-columns: 1fr;
    }
    .productos-grid {
        grid-template-columns: 1fr;
    }
    .producto-card form {
        flex-direction: column;
    }
    .cantidad-input {
        width: 100%;
    }
    .carrito-acciones {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-vaciar, .btn-finalizar {
        text-align: center;
    }
}