/* ============================================
   ESTILOS COMPARTIDOS PARA REGISTRO DE AFILIACIÓN
   ============================================ */

/* Contenedores principales */
.registration-page-container,
.affiliation-page-container {
    width: 100%;
    min-height: 100vh;
    background-color: #ebebeb;
    padding: 60px 20px;
}

.registration-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.affiliation-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Headers y títulos */
.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.registration-title {
    font-family: Raleway-Bold, sans-serif;
    font-size: 32px;
    color: #333333;
    line-height: 1.2;
    margin-bottom: 10px;
}

.registration-subtitle {
    font-family: Raleway-Regular, sans-serif;
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.section-title {
    font-family: Raleway-Bold, sans-serif;
    font-size: 36px;
    color: #333333;
    line-height: 1.2;
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.affiliation-layout {
    width: 100%;
    margin-bottom: 60px;
}

/* Select minimalista para tipo de afiliación */
.tipo-afiliacion-select-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tipo-afiliacion-select-wrapper label {
    font-family: Raleway-Regular, sans-serif;
    font-size: 15px;
    color: #666666;
    font-weight: normal;
    margin: 0;
}

.tipo-afiliacion-select {
    padding: 10px 35px 10px 15px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    background-color: #fff;
    font-size: 15px;
    font-family: Raleway-Regular, sans-serif;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 280px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23666' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.tipo-afiliacion-select:hover {
    border-color: #359AFF;
}

.tipo-afiliacion-select:focus {
    border-color: #359AFF;
    box-shadow: 0 0 0 3px rgba(53, 154, 255, 0.1);
}

/* Formularios */
.form-section {
    margin-top: 30px;
}

/* Contenedor de botones del formulario */
.form-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.container-login100-form-btn,
.back-button-wrapper {
    flex: 1;
    min-width: 200px;
}

.container-login100-form-btn .login100-form-btn,
.back-button-wrapper .login100-form-btn {
    width: 100%;
    box-sizing: border-box;
}

.back-button-wrapper a {
    display: block;
    width: 100%;
}

.back-button-section,
.back-button {
    margin-top: 40px;
    text-align: center;
}

.login100-form-btn {
    display: inline-block;
}

/* Sobrescribir el color de focus a azul (#359AFF) para mantener la identidad de marca */
.wrap-input100 .focus-input100 {
    border: 1px solid #359AFF !important;
}

.wrap-input100 .input100:focus + .focus-input100 {
    border-color: #359AFF !important;
}

/* Color de los mensajes de error en línea con el estilo de la marca */
.alert-validate::before {
    border-color: #c80000 !important;
}

.alert-validate::after {
    color: #c80000 !important;
}

/* Estilos para el select - más compacto y minimalista */
.input100 {
    background-color: transparent;
}

select.input100 {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 32px 8px 12px;
    cursor: pointer;
    line-height: 1.4;
    height: auto;
    min-height: 45px;
}

select.input100:focus {
    outline: none;
}

.wrap-input100 select.input100 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23666' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}

/* Modal de Error */
.modal-error-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-error-overlay.show {
    display: flex;
}

.modal-error-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-error-header {
    background: linear-gradient(135deg, #c80000 0%, #e53935 100%);
    color: #fff;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-error-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.modal-error-title {
    font-family: Raleway-Bold, sans-serif;
    font-size: 20px;
    margin: 0;
    flex: 1;
}

.modal-error-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.modal-error-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-error-body {
    padding: 25px;
}

.modal-error-message {
    font-family: Raleway-Regular, sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-error-details {
    background: #f8f9fa;
    border-left: 4px solid #c80000;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
}

.modal-error-details-title {
    font-family: Raleway-Bold, sans-serif;
    font-size: 14px;
    color: #c80000;
    margin-bottom: 10px;
}

.modal-error-details-item {
    font-family: Raleway-Regular, sans-serif;
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.modal-error-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-error-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-family: Raleway-Regular, sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.modal-error-btn-primary {
    background: #359AFF;
    color: #fff;
}

.modal-error-btn-primary:hover {
    background: #2a8ae6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(53, 154, 255, 0.3);
}

.modal-error-btn-primary:active {
    transform: translateY(0);
}

/* Modal de Éxito (para mensajes positivos) */
.modal-error-overlay.success .modal-error-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.modal-error-overlay.success .modal-error-details {
    border-left-color: #28a745;
}

.modal-error-overlay.success .modal-error-details-title {
    color: #28a745;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA INFORMACIÓN AFILIACIÓN
   ============================================ */

/* Estilos para el acordeón */
.accordion-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e6e6e6;
}

.accordion-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.accordion-item.active {
    background: #fff;
    box-shadow: 0 4px 15px rgba(53, 154, 255, 0.2);
    border-color: #359AFF;
}

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(53, 154, 255, 0.05);
}

.accordion-item.active .accordion-header {
    background-color: rgba(53, 154, 255, 0.1);
}

.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #359AFF;
    font-size: 20px;
}

.accordion-title {
    font-family: Raleway-SemiBold, sans-serif;
    font-size: 16px;
    color: #333333;
    margin: 0;
}

.accordion-toggle {
    font-size: 24px;
    color: #666666;
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(45deg);
    color: #359AFF;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.accordion-item.active .accordion-content {
    max-height: 5000px;
    padding: 30px 35px 35px 35px;
}

.accordion-body {
    font-family: Raleway-Regular, sans-serif;
    font-size: 15px;
    color: #666666;
    line-height: 1.8;
}

.accordion-body h3 {
    font-family: Raleway-SemiBold, sans-serif;
    font-size: 20px;
    color: #359AFF;
    margin-bottom: 20px;
    margin-top: 25px;
    border-bottom: 2px solid #e6e6e6;
    padding-bottom: 10px;
}

.accordion-body h3:first-child {
    margin-top: 0;
}

.accordion-body ul {
    margin: 18px 0;
    padding-left: 25px;
}

.accordion-body li {
    margin-bottom: 12px;
    list-style-type: disc;
    color: #666666;
}

.accordion-body p {
    margin-bottom: 15px;
    color: #555555;
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #359AFF;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box strong {
    color: #359AFF;
    font-family: Raleway-SemiBold, sans-serif;
}

.process-steps {
    margin: 25px 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
}

.step-number {
    background: #359AFF;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Raleway-Bold, sans-serif;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

/* Estilos para la imagen */
.affiliation-image {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 250px;
}

.affiliation-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Estilos para la sección de Normatividad */
.normatividad-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #e6e6e6;
}

.normatividad-title {
    font-family: Raleway-Bold, sans-serif;
    font-size: 32px;
    color: #359AFF;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}

.normatividad-description {
    font-family: Raleway-Regular, sans-serif;
    font-size: 16px;
    color: #666666;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.normatividad-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.normatividad-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.normatividad-card:hover {
    box-shadow: 0 4px 15px rgba(53, 154, 255, 0.15);
    transform: translateY(-5px);
    border-color: #359AFF;
}

.normatividad-card-icon {
    font-size: 64px;
    color: #cccccc;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.normatividad-card:hover .normatividad-card-icon {
    color: #359AFF;
}

.normatividad-card-title {
    font-family: Raleway-SemiBold, sans-serif;
    font-size: 18px;
    color: #333333;
    margin-top: 15px;
}

/* Media Queries */
@media (max-width: 992px) {
    .header-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .normatividad-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SPINNER DE CARGA ELEGANTE Y MINIMALISTA
   ============================================ */

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    display: flex;
    opacity: 1;
}

.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08);
    animation: fadeInScale 0.3s ease;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(53, 154, 255, 0.1);
    border-top-color: #359AFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

