/* ------------------------------------------------------------------
   IAA - componentes del panel

   Portado de public/css/modules-style.css de la rama version3. Se
   quitaron los selectores del modulo de boletines, que es de la FAU y en
   IAA no existe: dejarlos seria CSS muerto. Ojo que varias reglas eran
   compartidas (por ejemplo `.card-custom, .boletin-card { ... }`), asi
   que se saco el selector y se conservo la regla.

   Queda la parte reutilizable: tarjetas, cabezales de seccion, botones,
   filas de datos y la zona de subida de archivos.
   ------------------------------------------------------------------ */

/*
 * Estilos personalizados para módulos de atoms_ema
 * Incluye estilos para: preinscripción y componentes generales
 */

/* ==========================================================================
   Contenedores y Layout
   ========================================================================== */

.preinscripcion-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   Headers personalizados
   ========================================================================== */

.page-header-custom {
    background: linear-gradient(135deg, #337ab7 0%, #286090 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.page-header-custom h2 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.page-header-custom p {
    margin: 2px 0 0 0;
    opacity: 0.9;
    font-size: 12px;
}

/* ==========================================================================
   Cards personalizadas
   ========================================================================== */

.card-custom {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card-header-custom {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 8px 12px;
    border-bottom: 2px solid #337ab7;
    border-radius: 4px 4px 0 0;
}

.card-header-custom h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.card-header-custom h4 > span:first-child {
    display: flex;
    align-items: center;
}

.card-header-custom h4 .header-title {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.card-header-custom h4 .header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    font-weight: normal;
    margin-left: auto;
}

.header-actions a.btn {
    background: #fff;
    color: #333 !important;
    border: 1px solid #ccc;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.header-actions a.btn .glyphicon {
    color: #337ab7 !important;
}

.header-actions a.btn:hover {
    background: #e9ecef;
    border-color: #aaa;
    color: #333 !important;
}

.card-header-custom h4 .glyphicon {
    margin-right: 6px;
    color: #337ab7;
    font-size: 13px;
}

img[src*="rtv.png"] {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(352%) hue-rotate(176deg) brightness(93%) contrast(89%);
}

.card-header-custom h4 img[src*="rtv.png"] {
    margin-right: 6px;
}

.page-header-custom img[src*="rtv.png"] {
    filter: brightness(0) invert(1);
    margin-right: 4px;
}

.card-body-custom {
    padding: 10px 12px;
}

/* ==========================================================================
   Info Rows (usado en preinscripción)
   ========================================================================== */

.info-row {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #333;
    font-size: 13px;
    font-weight: 400;
}

.info-value strong {
    color: #337ab7;
    font-size: 14px;
}

/* ==========================================================================
   Upload Area (usado en preinscripción)
   ========================================================================== */

.upload-area {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #337ab7;
    background: #e7f3ff;
}

.upload-icon {
    font-size: 48px;
    color: #337ab7;
    margin-bottom: 15px;
}

.upload-text {
    color: #666;
    margin: 10px 0;
}

.upload-hint {
    color: #999;
    font-size: 12px;
}

/* ==========================================================================
   File Items (usado en preinscripción)
   ========================================================================== */

.file-item {
    padding: 15px;
    margin: 10px 0;
    background: linear-gradient(to right, #f8f9fa, white);
    border: 1px solid #e0e0e0;
    border-left: 4px solid #337ab7;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.file-item:hover {
    box-shadow: 0 2px 8px rgba(51, 122, 183, 0.2);
    transform: translateX(5px);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: flex;
    align-items: center;
}

.file-name .glyphicon {
    color: #337ab7;
    margin-right: 8px;
}

.file-size {
    color: #999;
    font-size: 13px;
}

/* ==========================================================================
   Botones personalizados
   ========================================================================== */

.btn-custom-primary,
a.btn-custom-primary,
a.btn-custom-primary:link,
a.btn-custom-primary:visited {
    background: #337ab7;
    border: none;
    color: white !important;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-custom-primary .glyphicon,
a.btn-custom-primary .glyphicon {
    color: white !important;
}

.btn-custom-primary:hover,
a.btn-custom-primary:hover {
    background: #286090;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 122, 183, 0.4);
    color: white !important;
}

.btn-custom-primary.btn-sm,
a.btn-custom-primary.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
}

.btn-custom-secondary {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-custom-secondary:hover {
    border-color: #999;
    color: #333;
}

.btn-actions {
    text-align: right;
    margin-top: 30px;
    padding: 20px 0;
}

.btn-actions a,
.btn-actions button {
    margin-left: 10px;
}

/* ==========================================================================
   Estados y mensajes
   ========================================================================== */

.error-message {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    color: #721c24;
    margin: 15px 0;
}

.success-message {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    color: #155724;
    margin: 15px 0;
}

.info-message {
    padding: 15px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    border-radius: 6px;
    color: #0c5460;
    margin: 15px 0;
}

.alert-files {
    background: linear-gradient(to right, #e7f3ff, #f0f8ff);
    border: none;
    border-left: 4px solid #337ab7;
    color: #333;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}
