/* Botón para abrir el modal (simulación) */
.open-modal-btn {
    background: linear-gradient(135deg, #e53935, #99282e);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
    transition: all 0.3s ease;
}

.open-modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
}

/* OVERLAY DEL MODAL */
.farmalux-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    opacity: 0;
}

.farmalux-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* MODAL PRINCIPAL */
.farmalux-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 40px 30px 30px;
    position: relative;
    text-align: center;
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ICONO DE CONFIRMACIÓN */
.farmalux-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #0d966c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 36px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* TÍTULOS Y TEXTOS */
.farmalux-modal-title {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.farmalux-modal-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.farmalux-modal-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* BLOQUE INFORMATIVO */
.farmalux-modal-next-steps {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
    border-left: 4px solid #e53935;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.farmalux-modal-next-title {
    color: #e53935;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.farmalux-modal-next-title:before {
    content: "→";
    color: #e53935;
    margin-right: 8px;
    font-weight: 700;
}

.farmalux-modal-list {
    color: #555;
    padding-left: 20px;
    margin-bottom: 0;
}

.farmalux-modal-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.farmalux-modal-list li:last-child {
    margin-bottom: 0;
}

/* TEXTO FINAL PEQUEÑO */
.farmalux-modal-help {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-style: italic;
}

/* CONTENEDOR DE BOTONES */
.farmalux-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BOTONES */
.farmalux-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 180px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.farmalux-btn-primary {
    background: linear-gradient(135deg, #e53935, #99282e);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.farmalux-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.3);
    background: linear-gradient(135deg, #f44336, #a8282e);
}

.farmalux-btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: #555;
    border: 2px solid rgba(229, 57, 53, 0.3);
    backdrop-filter: blur(10px);
}

.farmalux-btn-secondary:hover {
    background-color: rgba(248, 250, 252, 0.9);
    border-color: rgba(229, 57, 53, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.farmalux-btn-dark {
    background: linear-gradient(135deg, #6c757d, #2b2e31);
    color: white;
    box-shadow: 0 4px 12px rgb(108, 117, 125, 0.25);
}

.farmalux-btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgb(108, 117, 125, 0.3);
    background: linear-gradient(135deg, #7b868f, #3c4044);
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVIDAD */
@media (max-width: 768px) {
    .farmalux-modal {
        padding: 30px 20px 25px;
        max-width: 90%;
    }
    
    .farmalux-modal-title {
        font-size: 1.5rem;
    }
    
    .farmalux-modal-subtitle {
        font-size: 1rem;
    }
    
    .farmalux-modal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .farmalux-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .farmalux-modal-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .open-modal-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
    }
}