﻿/* Personalización específica */
.personalizar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 15px;
}

.personalizar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px 20px 0 0;
    color: white;
    margin-bottom: 0;
}

    .personalizar-header h4 {
        margin: 0;
        font-weight: 700;
        font-size: 1.8rem;
    }

.main-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    background: white;
}

.main-card-body {
    padding: 35px;
}

/* Secciones de ingredientes */
.ingredientes-section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title i {
        font-size: 1.6rem;
    }

.section-description {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Tarjetas de ingredientes */
.ingrediente-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    border: 2px solid transparent;
}

    .ingrediente-card.included {
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
        border-color: #2ed573;
    }

    .ingrediente-card.extra {
        background: white;
        border-color: #e2e8f0;
    }

        .ingrediente-card.extra:hover {
            border-color: #ffd93d;
            box-shadow: 0 4px 15px rgba(255, 217, 61, 0.2);
            transform: translateY(-2px);
        }

        .ingrediente-card.extra.selected {
            background: linear-gradient(135deg, #fff9e6 0%, #fff4cc 100%);
            border-color: #ffd93d;
            box-shadow: 0 4px 15px rgba(255, 217, 61, 0.3);
        }

    .ingrediente-card .card-body {
        padding: 15px;
    }

.form-check-input {
    width: 22px;
    height: 22px;
    margin-top: 0;
    cursor: pointer;
    border: 2px solid #cbd5e0;
}

    .form-check-input:checked {
        background-color: #ffd93d;
        border-color: #ffd93d;
    }

.form-check-label {
    cursor: pointer;
    margin-left: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ingrediente-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Notas especiales */
.notas-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

    .notas-section textarea {
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 15px;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

        .notas-section textarea:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

/* Botones de acción */
.btn-agregar-carrito {
    background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
    border: none;
    color: white;
    padding: 18px 30px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(46, 213, 115, 0.3);
}

    .btn-agregar-carrito:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(46, 213, 115, 0.4);
        color: white;
    }

.btn-volver {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-volver:hover {
        background: #667eea;
        color: white;
        transform: translateY(-2px);
    }

/* Resumen sticky */
.resumen-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.resumen-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    padding: 20px;
    color: white;
}

    .resumen-header h5 {
        margin: 0;
        font-weight: 700;
    }

.resumen-body {
    padding: 25px;
}

.resumen-producto {
    padding: 15px;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 20px;
}

    .resumen-producto h6 {
        color: #667eea;
        font-weight: 700;
        margin-bottom: 8px;
    }

.lista-incluye {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

    .lista-incluye li {
        padding: 6px 0;
        padding-left: 25px;
        position: relative;
        font-size: 0.9rem;
        color: #4a5568;
    }

        .lista-incluye li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #2ed573;
            font-weight: bold;
            font-size: 1.1rem;
        }

.precio-desglose {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
}

.precio-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1rem;
}

.precio-total {
    border-top: 2px solid #e2e8f0;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.4rem;
    font-weight: 800;
}

    .precio-total .amount {
        background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

/* Animaciones */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .personalizar-header h4 {
        font-size: 1.4rem;
    }

    .main-card-body {
        padding: 20px;
    }

    .resumen-card {
        position: static;
        margin-top: 30px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .btn-agregar-carrito {
        font-size: 1rem;
        padding: 15px 20px;
    }
}

/* Alert mejorados */
.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
}

.alert-warning {
    background: linear-gradient(135deg, #fff9e6 0%, #fff4cc 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #004085;
}
