/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo de la página y estilo general */
body {
    background-color: #ffffff;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Título principal */
h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1f2937;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Contenedor de botones estilo grid */
.grid-activadores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 900px;
}

/* Estilo de los botones */
.grid-activadores button {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.2);
    text-align: center;
}

.grid-activadores button:hover {
    background: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.grid-activadores button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

/* Responsividad adicional */
@media (max-width: 500px) {
    h2 {
        font-size: 1.5rem;
    }

    .grid-activadores button {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

/* ---------------- Toasts elegantes ---------------- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    padding: 15px 25px;
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards, fadeOut 0.5s 3s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #f87171);
}
