/* ============================================
   SISTEMA DE COLORES CORPORATIVOS
============================================ */
:root {
    --adm-primary: #014d79;
    --adm-primary-light: #0268a3;
    --adm-secondary: #fc7f01;
    --adm-secondary-dark: #e07001;
    --adm-secondary-light: #fd9633;
    --adm-gray-50: #f8f9fa;
    --adm-gray-200: #e9ecef;
    --adm-gray-300: #dee2e6;
    --adm-gray-600: #6c757d;
    --adm-gray-800: #343a40;
}

/* ============================================
   CONTENEDOR PRINCIPAL
============================================ */
.adm-consulta-container {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--adm-gray-50) 0%, var(--adm-gray-200) 100%);
    min-height: 70vh;
}

/* ============================================
   CARD DE BÚSQUEDA
============================================ */
.adm-search-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(1, 77, 121, 0.1);
    padding: 3rem;
    margin-bottom: 2rem;
}

.adm-search-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--adm-gray-200);
}

.adm-search-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--adm-primary);
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.adm-search-title i {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--adm-secondary);
}

.adm-search-subtitle {
    color: var(--adm-gray-600);
    font-size: 1.05rem;
    margin-left: 3rem;
}

/* ============================================
   CAMPOS DEL FORMULARIO - ALTURA UNIFORME
============================================ */
.adm-form-label {
    font-weight: 600;
    color: var(--adm-primary-dark);
    margin-bottom: 0.625rem;
    display: block;
    font-size: 1.54rem;
}

.adm-form-control,
.form-select.adm-form-control,
.adm-btn-search {
    width: 100%;
    border: 2px solid var(--adm-gray-300);
    border-radius: 10px;
    padding: 0.95rem 1.25rem;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    background: #fff;
    color: var(--adm-gray-800);
    height: 35px; /* ✅ ALTURA UNIFORME */
    display: flex;
    align-items: center;
}

.adm-form-control:focus,
.form-select.adm-form-control:focus {
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 4px rgba(1, 77, 121, 0.1);
    outline: none;
}

.adm-form-control:hover:not(:focus),
.form-select.adm-form-control:hover:not(:focus) {
    border-color: var(--adm-primary-light);
    background: var(--adm-gray-50);
}

/* ============================================
   BOTÓN DE BÚSQUEDA - NARANJA
============================================ */
.adm-btn-search {
    background: linear-gradient(135deg, var(--adm-secondary) 0%, var(--adm-secondary-dark) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 0.95rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(252, 127, 1, 0.35);
    justify-content: center;
    cursor: pointer;
}

.adm-btn-search:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 127, 1, 0.45);
    background: linear-gradient(135deg, var(--adm-secondary-light) 0%, var(--adm-secondary) 100%);
}

.adm-btn-search:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.adm-btn-search i {
    margin-right: 0.625rem;
}

/* ============================================
   ALERTAS
============================================ */
.adm-alert {
    border-radius: 10px;
    padding: 1.15rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    border: none;
    display: none;
}

.adm-alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.adm-alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.adm-alert i {
    margin-right: 0.75rem;
    font-size: 1.15rem;
}

/* ============================================
   CARD DE RESULTADOS
============================================ */
.adm-results-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(1, 77, 121, 0.1);
    padding: 2.5rem;
    display: none;
}

.adm-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--adm-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.adm-results-title i {
    margin-right: 0.75rem;
    color: var(--adm-secondary);
}

/* ============================================
   BADGES DE ESTADO - TAMAÑO AUMENTADO
============================================ */
.adm-badge-status {
    padding: 0.55rem 1.15rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1.25rem; /* ✅ AUMENTADO A 1.25rem */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.adm-badge-success {
    background: #d4edda;
    color: #155724;
}

.adm-badge-success i {
    font-size: 1.35rem;
}

.adm-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.adm-badge-warning i {
    font-size: 1.35rem;
}

/* Badges de tipo de solicitud */
.badge {
    font-size: 1.25rem !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
}

/* ============================================
   BOTÓN VER - TAMAÑO AUMENTADO
============================================ */
.adm-btn-ver {
    background: linear-gradient(135deg, var(--adm-secondary) 0%, var(--adm-secondary-dark) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    font-size: 1.25rem; /* ✅ AUMENTADO A 1.25rem */
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: 0 4px 12px rgba(252, 127, 1, 0.35);
}

.adm-btn-ver:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 127, 1, 0.45);
    background: linear-gradient(135deg, var(--adm-secondary-light) 0%, var(--adm-secondary) 100%);
}

.adm-btn-ver i {
    font-size: 1.35rem;
}

/* ============================================
   RESPONSIVE - TABLET (768px - 991px)
============================================ */
@media (max-width: 991px) {
    .adm-consulta-container {
        padding: 2.5rem 0;
    }

    .adm-search-card,
    .adm-results-card {
        padding: 2rem;
    }

    .adm-search-title {
        font-size: 1.65rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (576px - 767px)
============================================ */
@media (max-width: 767px) {
    .adm-consulta-container {
        padding: 2rem 0;
    }

    .adm-search-card,
    .adm-results-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .adm-search-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .adm-search-title i {
        margin-bottom: 0.5rem;
    }

    .adm-search-subtitle {
        margin-left: 0;
        font-size: 1rem;
    }


    .adm-btn-search {
        padding: 0.875rem 2rem;
        font-size: 1.05rem;
    }

    .table tbody td {
        padding: 1rem 0.75rem !important;
        font-size: 1rem !important;
    }

    .thead-light th {
        font-size: 1rem !important;
    }

    .adm-badge-status {
        font-size: 1.15rem;
        padding: 0.5rem 1rem;
    }

    .adm-btn-ver {
        font-size: 1.15rem;
        padding: 0.65rem 1.5rem;
    }

    .table {
        min-width: 900px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE PEQUEÑO (<576px)
============================================ */
@media (max-width: 575px) {
    .adm-search-card,
    .adm-results-card {
        padding: 1.25rem;
    }

    .adm-search-title {
        font-size: 1.35rem;
    }


    .adm-btn-search {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .adm-badge-status {
        font-size: 1.05rem;
        padding: 0.45rem 0.9rem;
    }

    .adm-btn-ver {
        font-size: 1.05rem;
        padding: 0.6rem 1.25rem;
    }

    .adm-btn-ver i {
        font-size: 1.2rem;
    }
}

/* ============================================
   MEJORAS DE ACCESIBILIDAD
============================================ */
.adm-form-control:focus,
.form-select.adm-form-control:focus,
.adm-btn-search:focus,
.adm-btn-ver:focus {
    outline: 3px solid rgba(1, 77, 121, 0.4);
    outline-offset: 3px;
}

/* ============================================
   RESPUESTAS
============================================ */

.adm-respuestas-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 5px solid #fc7f01;
}

.adm-respuestas-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.adm-info-item {
    display: flex;
    flex-direction: column;
}

.adm-info-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.adm-info-value {
    font-size: 1.25rem;
    color: #014d79;
    font-weight: 600;
}

.adm-timeline {
    position: relative;
    padding-left: 2.5rem;
}

.adm-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--adm-secondary) 0%, var(--adm-secondary-light) 100%);
}

.adm-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.adm-timeline-item:last-child {
    padding-bottom: 0;
}

.adm-timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #fc7f01;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #fc7f01;
    z-index: 1;
}

.adm-timeline-content {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.adm-timeline-content:hover {
    border-color: #014d79;
    box-shadow: 0 4px 12px rgba(1, 77, 121, 0.1);
}

.adm-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
}

.adm-timeline-user {
    font-size: 1.05rem;
    font-weight: 700;
    color: #014d79;
    display: flex;
    align-items: center;
}

.adm-timeline-user i {
    margin-right: 0.5rem;
    color: #fc7f01;
}

.adm-timeline-date {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.adm-timeline-date i {
    margin-right: 0.5rem;
}

.adm-timeline-text {
    color: #343a40;
    font-size: 1.35rem;
    line-height: 1.7;
    white-space: pre-line;
}

.adm-no-respuestas {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.adm-no-respuestas i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.adm-no-respuestas p {
    font-size: 1.15rem;
    margin: 0;
}

@media (max-width: 767px) {
    .adm-respuestas-info {
        grid-template-columns: 1fr;
    }

    .adm-timeline {
        padding-left: 2rem;
    }

    .adm-timeline-marker {
        left: -1.625rem;
        width: 1.25rem;
        height: 1.25rem;
    }

    .adm-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ============================================
   BOTÓN NUEVA RESPUESTA
============================================ */
.adm-new-response-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 3px solid #e9ecef;
}

.adm-btn-new-comment {
    background: linear-gradient(135deg, #fc7f01 0%, #e07001 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 1.25rem 2.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    box-shadow: 0 4px 12px rgba(252, 127, 1, 0.35);
    width: 100%;
    justify-content: center;
}

.adm-btn-new-comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(252, 127, 1, 0.45);
    background: linear-gradient(135deg, #fd9633 0%, #fc7f01 100%);
}

.adm-btn-new-comment i {
    font-size: 1.35rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ============================================
   CONTENEDOR DEL FORMULARIO
============================================ */
.adm-response-form-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #fc7f01;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(252, 127, 1, 0.1);
}

.adm-response-form {
    /* Estilos ya existentes */
}

.adm-form-label-response {
    font-weight: 600;
    color: #014d79;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1.05rem;
}

.adm-form-control-response {
    width: 100%;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    background: #fff;
    color: #343a40;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.adm-form-control-response:focus {
    border-color: #014d79;
    box-shadow: 0 0 0 4px rgba(1, 77, 121, 0.1);
    outline: none;
}

.adm-form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #6c757d;
}

.adm-form-help i {
    margin-right: 0.5rem;
    color: #fc7f01;
}

/* ============================================
   ACCIONES DEL FORMULARIO
============================================ */
.adm-response-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.adm-btn-response-cancel {
    background: #dc3545;
    color: #fff;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.adm-btn-response-cancel:hover:not(:disabled) {
    background: #a62935;
    color: #fff;
    transform: translateY(-2px);
}


.adm-btn-response-submit {
    background: linear-gradient(135deg, var(--adm-secondary) 0%, var(--adm-secondary-light) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: 0 4px 12px rgba(1, 77, 121, 0.35);
}

.adm-btn-response-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 77, 121, 0.45);
}

.adm-btn-response-submit:disabled,
.adm-btn-response-cancel:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   BADGE NUEVO
============================================ */
.adm-badge-new {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
    animation: fadeInBounce 0.6s ease;
}

.adm-badge-new i {
    animation: sparkle 1.5s infinite;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) translateY(0);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-15deg) scale(1.1);
    }
    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

/* Remover badge después de 5 segundos */
.adm-badge-new {
    animation: fadeInBounce 0.6s ease, fadeOut 0.5s ease 5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* ============================================
   BADGES DE USUARIO
============================================ */
.adm-badge-oficial,
.adm-badge-usuario {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adm-badge-oficial {
    background: #014d79;
    color: #fff;
}

.adm-badge-usuario {
    background: #fc7f01;
    color: #fff;
}

/* ============================================
   SOLICITUD CERRADA
============================================ */
.adm-solicitud-cerrada {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.adm-solicitud-cerrada i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.adm-solicitud-cerrada p {
    font-size: 1.15rem;
    color: #721c24;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   RESPONSIVE - MOBILE
============================================ */
@media (max-width: 767px) {
    .adm-btn-new-comment {
        padding: 1.15rem 2rem;
        font-size: 1.1rem;
    }

    .adm-response-form-container {
        padding: 1.5rem;
    }

    .adm-response-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .adm-btn-response-cancel,
    .adm-btn-response-submit {
        width: 100%;
        justify-content: center;
    }

    .adm-badge-new {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 1rem;
        display: inline-flex;
    }

    .adm-timeline-content {
        position: relative;
    }
}

@media (max-width: 575px) {
    .adm-btn-new-comment {
        padding: 1rem 1.75rem;
        font-size: 1.05rem;
    }

    .adm-response-form-container {
        padding: 1.25rem;
    }

    .adm-form-control-response {
        font-size: 1rem;
        min-height: 100px;
    }

    .adm-btn-response-cancel,
    .adm-btn-response-submit {
        padding: 0.8rem 1.75rem;
        font-size: 1rem;
    }

    .adm-solicitud-cerrada {
        padding: 1.5rem;
    }

    .adm-solicitud-cerrada i {
        font-size: 2.5rem;
    }

    .adm-solicitud-cerrada p {
        font-size: 1.05rem;
    }
}

/* ============================================
   SMOOTH SCROLL
============================================ */
html {
    scroll-behavior: smooth;
}