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

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

/* ============================================
   NAVEGACIÓN LATERAL
============================================ */
.adm-nav-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(1, 77, 121, 0.1);
    padding: 2rem;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.adm-nav-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--adm-primary-dark);
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--adm-secondary);
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.adm-nav-title i {
    margin-right: 0.75rem;
    color: var(--adm-secondary);
    font-size: 1.5rem;
}

.adm-nav-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: var(--adm-gray-50);
    position: relative;
    overflow: hidden;
}

.adm-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--adm-secondary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.adm-nav-item:hover:not(.active) {
    background: #fff;
    border-color: var(--adm-primary-light);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(1, 77, 121, 0.15);
}

.adm-nav-item:hover:not(.active)::before {
    transform: scaleY(1);
}

.adm-nav-item.active {
    background: linear-gradient(135deg, var(--adm-secondary) 0%, var(--adm-secondary-light) 100%);
    color: #fff;
    border-color: var(--adm-secondary);
    transform: translateX(10px);
    pointer-events: none;
}

.adm-nav-item.active::before {
    transform: scaleY(1);
    background: var(--adm-secondary);
    width: 5px;
}

.adm-nav-item.active .adm-nav-icon {
    color: #fff;
    transform: scale(1.1);
}

.adm-nav-item.active .adm-nav-text {
    color: #fff;
    font-weight: 700;
}

.adm-nav-icon {
    font-size: 1.75rem;
    margin-right: 1.25rem;
    color: var(--adm-primary);
    transition: all 0.3s ease;
    min-width: 35px;
    text-align: center;
}

.adm-nav-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--adm-primary-dark);
    transition: all 0.3s ease;
    flex: 1;
    letter-spacing: -0.01em;
}

.adm-nav-badge {
    margin-left: auto;
    background: var(--adm-secondary);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(252, 127, 1, 0.3);
}

.adm-nav-item.active .adm-nav-badge {
    background: #fff;
    color: var(--adm-primary);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* ============================================
   CARD DEL FORMULARIO
============================================ */
.adm-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(1, 77, 121, 0.1);
    padding: 3rem;
    transition: box-shadow 0.3s ease;
}

.adm-form-card:hover {
    box-shadow: 0 6px 30px rgba(1, 77, 121, 0.15);
}

/* ============================================
   HEADER DEL FORMULARIO
============================================ */
.adm-form-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--adm-gray-200);
}

.adm-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--adm-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    animation: fadeInDown 0.5s ease;
    flex-wrap: wrap;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.adm-form-title-icon {
    font-size: 2.25rem;
    margin-right: 1rem;
    color: var(--adm-secondary);
    animation: bounceIn 0.6s ease;
}

.adm-form-subtitle {
    color: var(--adm-gray-600);
    font-size: 1.1rem;
    animation: fadeIn 0.7s ease;
    margin-top: 0.75rem;
    line-height: 1.6;
}

/* ============================================
   CAMPOS DEL FORMULARIO
============================================ */
.adm-form-group {
    margin-bottom: 1.75rem;
}

.adm-form-label {
    font-weight: 600;
    color: var(--adm-primary-dark);
    margin-bottom: 0.625rem;
    display: block;
    font-size: 1.54rem;
    letter-spacing: -0.01em;
}

.adm-form-control {
    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.35rem;
    background: #fff;
    color: var(--adm-gray-800);
    line-height: 1.5;
}

.adm-form-control::placeholder {
    color: var(--adm-gray-600);
    opacity: 0.7;
}

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

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

textarea.adm-form-control {
    resize: vertical;
    min-height: 140px;
}

select.adm-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23014d79' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

.form-text {
    font-size: 0.95rem;
    color: var(--adm-gray-600);
    margin-top: 0.4rem;
    display: block;
    line-height: 1.4;
}

/* Select2 personalizado */
.select2-container--default .select2-selection--single {
    border: 2px solid var(--adm-gray-300) !important;
    border-radius: 10px !important;
    height: auto !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 1.30rem !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--adm-primary) !important;
    box-shadow: 0 0 0 4px rgba(1, 77, 121, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
    color: var(--adm-gray-800);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 1.25rem !important;
}

.select2-dropdown {
    border: 2px solid var(--adm-primary) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(1, 77, 121, 0.15) !important;
}

.select2-results__option {
    padding: 0.75rem 1.25rem !important;
    font-size: 1.30rem !important;
}

.select2-selection__rendered{
    font-size: 1.25rem !important;
}

/* ============================================
   SEPARADORES DE SECCIONES
============================================ */
.adm-section-separator {
    width: 100%;
    margin: 2.5rem 0 2rem 0;
    position: relative;
}

.adm-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--adm-primary);
    background: #fff;
    padding: 0 1.25rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.01em;
}

.adm-section-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--adm-primary) 0%, var(--adm-secondary) 100%);
    z-index: -1;
}

/* ============================================
   BOTONES
============================================ */
.adm-btn-group {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 3px solid var(--adm-gray-200);
}

.adm-btn {
    padding: 1.1rem 2.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-width: 160px;
    letter-spacing: -0.01em;
}

.adm-btn i {
    margin-right: 0.625rem;
    font-size: 1.15rem;
}

.adm-btn-submit {
    background: linear-gradient(135deg, var(--adm-secondary) 0%, var(--adm-secondary-dark) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(252, 127, 1, 0.35);
}

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

.adm-btn-submit:active:not(:disabled) {
    transform: translateY(-1px);
}

.adm-btn-cancel {
    background: #dc3545;
    border: 2px solid #dc3545;
    color: #fff;
}

.adm-btn-cancel:hover {
    background: #a82c3e;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* ============================================
   ANIMACIONES
============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

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

    .adm-nav-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        padding: 1.75rem;
    }

    .adm-nav-title {
        font-size: 1.25rem;
    }

    .adm-nav-item {
        padding: 1.15rem 1.35rem;
    }

    .adm-nav-icon {
        font-size: 1.6rem;
    }

    .adm-nav-text {
        font-size: 1.1rem;
    }

    .adm-form-card {
        padding: 2.5rem;
    }

    .adm-form-title {
        font-size: 1.85rem;
    }

    .adm-btn-group {
        justify-content: stretch;
    }

    .adm-btn {
        flex: 1;
        min-width: 140px;
    }
}

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

    .adm-nav-sidebar {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .adm-nav-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }

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

    .adm-nav-item {
        padding: 1rem 1.15rem;
        margin-bottom: 0.75rem;
        border-radius: 10px;
    }

    .adm-nav-icon {
        font-size: 1.5rem;
        margin-right: 1rem;
        min-width: 32px;
    }

    .adm-nav-text {
        font-size: 1.05rem;
    }

    .adm-nav-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.65rem;
    }

    .adm-form-card {
        padding: 2rem;
        border-radius: 12px;
    }

    .adm-form-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

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

    .adm-form-title-icon {
        font-size: 1.85rem;
    }

    .adm-form-subtitle {
        font-size: 1.05rem;
    }

    .adm-form-label {
        font-size: 1rem;
    }

    .adm-form-control {
        font-size: 1rem;
        padding: 0.875rem 1.15rem;
    }

    .adm-form-group {
        margin-bottom: 1.5rem;
    }

    .adm-btn-group {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .adm-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }

    /* Hacer todos los campos full width en móvil */
    #form2 [class*="col-"] {
        width: 100% !important;
        float: none !important;
        padding-right: 0 !important;
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE PEQUEÑO (<576px)
============================================ */
@media (max-width: 575px) {
    .adm-pqrs-container {
        padding: 1.5rem 0;
    }

    .edu-breadcrumb-area {
        padding: 35px 0 !important;
    }

    .adm-nav-sidebar {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .adm-nav-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .adm-nav-title i {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }

    .adm-nav-item {
        padding: 0.875rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.625rem;
    }

    .adm-nav-icon {
        font-size: 1.35rem;
        margin-right: 0.875rem;
        min-width: 28px;
    }

    .adm-nav-text {
        font-size: 0.95rem;
    }

    .adm-nav-badge {
        padding: 0.25rem 0.55rem;
        font-size: 0.75rem;
        min-width: 22px;
    }

    .adm-form-card {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .adm-form-header {
        margin-bottom: 1.75rem;
        padding-bottom: 1.25rem;
    }

    .adm-form-title {
        font-size: 1.45rem;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.35;
    }

    .adm-form-title-icon {
        font-size: 1.65rem;
        margin-right: 0.5rem;
        margin-bottom: 0.35rem;
    }

    .adm-form-subtitle {
        font-size: 0.95rem;
        margin-top: 0.5rem;
        line-height: 1.6;
    }

    .adm-form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .adm-form-control {
        padding: 0.8rem 1rem;
        font-size: 1.25rem;
        border-radius: 8px;
    }

    textarea.adm-form-control {
        min-height: 120px;
    }

    .adm-section-separator {
        margin: 2rem 0 1.5rem 0;
    }

    .adm-section-title {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .adm-btn-group {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .adm-btn {
        padding: 0.925rem 1.75rem;
        font-size: 1rem;
        border-radius: 8px;
    }

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

    .form-text {
        font-size: 0.875rem;
    }

    .select2-container--default .select2-selection--single {
        padding: 0.65rem 1rem !important;
        font-size: 1.25rem !important;
    }

    .select2-results__option {
        padding: 0.65rem 1rem !important;
        font-size: 1.25rem !important;
    }
}

/* ============================================
   MEJORAS DE ACCESIBILIDAD
============================================ */

/* Loading state para botón */
.adm-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.adm-btn-submit:disabled:hover {
    box-shadow: 0 6px 20px rgba(252, 127, 1, 0.35);
    transform: none !important;
}

/* Estados de error para campos */
.adm-form-control.is-invalid {
    border-color: #dc3545;
}

.adm-form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.adm-form-control.is-valid {
    border-color: #28a745;
}

.adm-form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
}

/* ============================================
   MEJORAS VISUALES ADICIONALES
============================================ */
/* Smooth scroll para toda la página */
html {
    scroll-behavior: smooth;
}

/* Mejorar la legibilidad en pantallas pequeñas */
@media (max-width: 575px) {
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }
}

/* Optimización para touch devices */
@media (hover: none) {
    .adm-nav-item:hover:not(.active) {
        transform: none;
    }

    .adm-btn:hover {
        transform: none;
    }
}

.adm-consulta-card {
    background: linear-gradient(135deg, #fc7f01 0%, #e07001 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(252, 127, 1, 0.25);
    position: relative;
    overflow: hidden;
}

.adm-consulta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.adm-consulta-card-icon {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.adm-consulta-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.adm-consulta-card-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.adm-btn-consulta-mini {
    background: #fff;
    border: none;
    border-radius: 8px;
    color: #fc7f01;
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.adm-btn-consulta-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #e07001;
}