* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.productos-lista {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.producto-card-horizontal {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    flex-wrap: wrap;
    transition: transform 0.3s;
}

.producto-card-horizontal:hover {
    transform: translateY(-5px);
}

/* Imagen izquierda */
.producto-imagen {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.producto-imagen img {
    max-width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s;
}

.producto-imagen img:hover {
    transform: scale(1.02);
}

/* Contenido derecho */
.producto-contenido {
    flex: 2;
    padding: 30px;
    background: white;
}

.producto-contenido h2 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 1.9em;
    border-left: 5px solid #667eea;
    padding-left: 15px;
}

.descripcion {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1em;
}

.precio-base {
    font-size: 1.3em;
    color: #2c7a2e;
    background: #e6f4e6;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex; /*inline-block;*/
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.form-oferta h3 {
    margin-bottom: 18px;
    color: #2d3748;
    font-size: 1.4em;
}

.form-fila {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-fila input,
.form-fila button {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-fila input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-ofertar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-ofertar:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.1);
}

.btn-ofertar:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.mensaje {
    margin-top: 15px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.mensaje.success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.mensaje.error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

/* Responsive: pantallas pequeñas */
@media (max-width: 768px) {
    .producto-card-horizontal {
        flex-direction: column;
    }
    
    .producto-imagen {
        min-width: auto;
        padding: 20px;
    }
    
    .producto-imagen img {
        max-height: 200px;
    }
    
    .producto-contenido {
        padding: 20px;
    }
    
    .form-fila {
        flex-direction: column;
    }
    
    .form-fila button {
        width: 100%;
    }
}

.btn-comprar {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
    transition: 0.2s;
}
.btn-comprar:hover {
    background: #d97706;
    transform: scale(1.02);
}

/* Página de detalle de producto */
.container-detalle {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}
.detalle-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}
.detalle-imagen {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.detalle-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.detalle-info {
    flex: 2;
    padding: 30px;
}
.detalle-info h1 {
    color: #2d3748;
    margin-bottom: 15px;
    border-left: 5px solid #667eea;
    padding-left: 15px;
}
.detalle-descripcion {
    font-size: 1.05em;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 25px;
}
.detalle-precio {
    font-size: 1.6em;
    color: #2c7a2e;
    background: #e6f4e6;
    padding: 10px 15px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 25px;
}
.detalle-cuentas {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}
.detalle-cuentas h3 {
    margin-top: 0;
    color: #1e293b;
}

/* Recuadro de descuento (similar al precio) */
.mensaje-descuento {
    background: #eef2ff;      
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 1rem;       /* Tamaño menor que el precio base (que es ~1.3rem) */
    font-weight: 500;
    color: #1e40af;           /* Color de texto más sobrio */
    display: inline-block;    /* Para que se ajuste al contenido */
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 4px solid #3b82f6;  /* Detalle para destacar */
}

/* En la página de detalle podemos hacerlo un poco más ancho */
.detalle-descuento {
    background: #eef2ff;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 1rem;
    margin: 15px 0 20px 0;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: transform 0.2s;
}
.btn-whatsapp:hover {
    transform: scale(1.03);
    background: #128C7E;
}
.btn-volver {
    display: inline-block;
    background: #64748b;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
}
@media (max-width: 768px) {
    .detalle-card {
        flex-direction: column;
    }
}

.metodo-pago-group {
    margin: 10px 0;
}
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}
.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.filtros-catalogo {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.vendedor {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 8px;
}
.btn-comprar {
    background: #f59e0b;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    margin-left: 15px;
}
.btn-comprar:hover {
    background: #d97706;
}
