/* home-section.css: Estilos específicos para la sección Home */

/* ===== SECCIÓN DE ALERTAS - ESTILO CINTILLO MINIMALISTA ===== */
.main-content .alerts-section {
    margin-bottom: 0; /* Sin espaciado extra */
    padding: 0; /* Sin padding */
    background: transparent; /* Sin fondo */
}

/* Estilos base para alertas - Cintillo minimalista */
.main-content .alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0 auto; /* Centrado automático */
    width: 90%; /* 80% del ancho del contenedor padre */
    background: linear-gradient(90deg, var(--puntilla-orange), var(--puntilla-red));
    color: var(--puntilla-white);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-family);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    min-height: auto;
}

/* Tema oscuro para alertas - Mantiene el mismo diseño */
.main-content.theme-dark .alert {
    background: linear-gradient(90deg, var(--puntilla-orange), var(--puntilla-red));
    color: var(--puntilla-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Texto de alertas - Sin párrafos, texto directo */
.main-content .alert p {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
}

/* Icono opcional para alertas */
.main-content .alert .material-icons {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Layout helpers for alert update bar */
.main-content .alert-update {
    display: flex;
    align-items: center;
}

.main-content .alert-update .alert-update-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.main-content .alert-update-left {
    text-align: left;
    flex: 1 1 auto;
}

/* Right-side update/link inside alert: readable and clearly a link */
.main-content .alert-update-right {
    text-align: right;
    margin-left: auto; /* push to right */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-content .alert-update-right a {
    color: #FFFFFF; /* high contrast over gradient */
    text-decoration: underline; /* show as link by default */
    font-weight: 600;
}

.main-content .alert-update-right a:hover,
.main-content .alert-update-right a:focus {
    text-decoration: underline;
    filter: brightness(1.1);
}

.main-content .alert-update-right a:focus {
    outline: 2px solid rgba(255,255,255,0.9);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Dark theme keeps the same affordance */
.main-content.theme-dark .alert-update-right a {
    color: #FFFFFF;
}

@keyframes fadeInSubtle {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Hover effects para alertas - Efecto sutil */
.main-content .alert:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.15);
}

.main-content.theme-dark .alert:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Responsive - Cintillo optimizado para móviles */
@media (max-width: 768px) {
    .main-content .alert {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .main-content .alert .material-icons {
        font-size: 1rem;
    }
}