/* ==========================================================================
   Sobrescrituras globales (PrimeFaces + Bootstrap)
   - Objetivo: que los campos inválidos muestren borde rojo consistente.
   ========================================================================== */

.ui-messages-error-icon, .ui-messages-info-icon,
.ui-message-error-icon, .ui-message-info-icon {
    display: none !important;
}

.ui-messages-error, .ui-messages-info, 
.ui-message-error, .ui-message-info {
    border-radius: 25px !important;    /* Redondeado elegante, no se deforma en multilínea */
    border-width: 1px !important;
    border-style: solid !important;
    white-space: normal !important;    /* Permite saltos de línea si el texto es largo */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    box-sizing: border-box !important;
}

.ui-messages-error {
    background-color: #fff0f0 !important;
    border: 1px solid #ffcaca !important;
    color: #b02a37 !important;
}

/* ----- */

.side-card-container {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    font-family: 'Montserrat', sans-serif !important;
}

/* Encabezado: Logos y Título */
.card-header-block {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.logo-academy {
    max-height: 120px;
    margin-bottom: 15px;
}

.title-card {
    font-size: 1.1rem;
    color: #444;
    font-weight: 600;
}

/* --- ESTADOS DINÁMICOS DEL CONTENIDO --- */
.state-block {
    text-align: center;
    margin-top: 20px;
}

/* Mensajes y Alertas */
.status-message {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: 500;
}

.alert-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.alert-success-dlink {
    background-color: #e8f7ee;
    color: #1f7a1f;
    border: 1px solid #c3e6cb;
}

.alert-error-dlink {
    background-color: #fceaea;
    color: #b02a37;
    border: 1px solid #f5c2c7;
}

/* Botones y Cápsula Integradora */
.action-button-group {
    margin-bottom: 15px;
}

.custom-button-full {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    transition: 0.3s ease;
}

/* Botón Temario (Gris) */
.btn-dark-grey {
    background-color: #3e3e3e;
    color: white;
}

/* Botones Corporativos (Azul D-Link) */
.btn-primary-csd {
    background-color: #0087A9; /* Azul D-Link */
    color: white;
}

/* Botón Alternativo (Gris Claro) */
.btn-light-grey {
    background-color: #eee;
    color: #444;
}

/* Hover de botones */
.custom-button-full:hover {
    transform: scale(1.02);
    opacity: 0.9;
    color: white;
}

/* Categoría e Icono */
.category-footer-block {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

.category-text {
    font-weight: 500;
}

.category-item {
    display: flex;
    align-items: center;
    margin-top: 8px;
    color: #555;
    font-weight: 600;
}

.category-item i {
    font-size: 1.1rem;
    color: #0087A9;
    margin-right: 10px;
}