/* ========================================
📁 FORMULARIO EDITAR/NUEVO - ESTILOS
======================================== */

/* Header del Formulario */
.form-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.form-header h1 {
    color: #333;
}

/* Secciones del Formulario */
.form-section,
.productos-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.form-section h2,
.productos-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* Grid de Campos */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.help-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

/* Preview del Logo */
.logo-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.logo-preview img {
    max-height: 100px;
    display: block;
    margin-bottom: 10px;
}

/* Botones de Acción */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Sección de Productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.producto-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.producto-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.producto-info {
    padding: 15px;
}

.producto-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.producto-precio {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.producto-desc {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

.producto-limit-info {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ffc107;
}

.producto-form {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.producto-form h3 {
    color: #555;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
}