/* Fecha de actualización */
.fecha-actualizacion {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* Mensajes de resultado */
.result {
    margin-top: 30px;
    padding: 25px;
    border-radius: 6px;
    animation: slideIn 0.3s ease-out;
    border-left: 5px solid;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result.error {
    background: #fff8e1;
    border-left-color: #F9B233;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.result.error .result-title {
    color: #f57c00;
}

.result-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #666;
}

/* Panel de resultados */
.results-panel {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-out;
}

.results-title {
    font-size: 20px;
    font-weight: 600;
    color: #242C4F;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.panel-body {
    padding: 40px;
}

/* Tabla de resultados */
.cons-table {
    width: 100%;
    margin-bottom: 0;
    background-color: transparent;
    border-collapse: collapse;
}

.cons-table th {
    background-color: #eef0f6;
    color: #3d4466;
    padding: 12px 20px;
    font-weight: 600;
    text-align: left;
    font-size: 14px;
    width: 35%;
    vertical-align: middle;
    border-bottom: 1px solid #dde0ea;
}

.cons-table td {
    padding: 12px 20px;
    vertical-align: middle;
    font-size: 14px;
    color: #333;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

/* Filas impares con fondo suave */
.cons-table tr:nth-child(odd) th,
.cons-table tr:nth-child(odd) td {
    background-color: #f5f6fa;
}

/* Filas pares */
.cons-table tr:nth-child(even) th,
.cons-table tr:nth-child(even) td {
    background-color: #ffffff;
}

.cons-table tr:last-child th,
.cons-table tr:last-child td {
    border-bottom: none;
}

/* Efecto hover en las filas */
.cons-table tr {
    transition: background-color 0.2s ease;
}

.cons-table tr:hover th,
.cons-table tr:hover td {
    background-color: #e4e7f0;
}

.cons-table tbody tr td.denominacion {
    text-align: left;
}

.cons-table tbody tr td.actions-column {
    text-align: center;
    width: 120px;
}

.cons-table td .btn-view {
    background-color: #242C4F;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cons-table td .btn-view:hover,
.cons-table td .btn-view:focus {
    background-color: #1a1f38;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(36, 44, 79, 0.3);
}

.cons-table td .btn-view:focus {
    outline: 2px solid #242C4F;
    outline-offset: 2px;
}

.back-button-container {
    margin: 10px 0 20px;
}

.back-button-container.bottom {
    margin: 25px 0 10px;
}

.btn-back {
    background-color: #f2f2f2;
    color: #242C4F;
    border: 1px solid #d0d0d0;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-back:hover,
.btn-back:focus {
    background-color: #e9ecef;
    color: #1a1f38;
    text-decoration: none;
}

.btn-back .arrow {
    margin-right: 6px;
    font-weight: 700;
}

/* Estilos para filas alternadas */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

/* Estilos para los enlaces de código de obra social */
.cons-table td .btn-codigo {
    background-color: #242C4F;
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 150px;
}

.cons-table td .btn-codigo:hover {
    background-color: #1a1f38;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(36, 44, 79, 0.3);
    color: white;
    text-decoration: none;
}

.cons-table td .btn-codigo:active {
    transform: translateY(0);
}

/* Mejoras de accesibilidad */
.cons-table td .btn-codigo:focus {
    outline: 2px solid #242C4F;
    outline-offset: 2px;
}

.input-group .form-control:focus {
    position: relative;
    z-index: 3;
}

/* Mejora del contenedor */
.container {
    max-width: 1200px;
}

/* Título del panel */
.panel-title {
    font-size: 24px;
    font-weight: 600;
    color: #242C4F;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    border-left: 4px solid #0072BB;
    padding-left: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .panel-body {
        padding: 30px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .subtitle {
        font-size: 14px;
    }

    .cons-table thead tr th,
    .cons-table tbody tr td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .cons-table thead tr th {
        font-size: 13px;
    }

    .cons-table td .btn-codigo {
        padding: 6px 15px;
        font-size: 13px;
    }

    .results-title {
        font-size: 18px;
    }

    .panel-title {
        font-size: 20px;
    }

    .panel-body {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .cons-table {
        font-size: 13px;
    }

    .cons-table thead tr th,
    .cons-table tbody tr td {
        padding: 10px 8px;
    }

    .result {
        padding: 20px;
    }

    .result-title {
        font-size: 18px;
    }

    .panel-body {
        padding: 20px 15px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}