/* registro.css - Estilos específicos del registro */

/* ========== ESTRUCTURA PRINCIPAL ========== */

.main-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.registration-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, #2c5aa0, #1e4070);
    color: white;
    padding: 30px;
    text-align: center;
}

.card-header-custom h2 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-header-custom p {
    margin: 0;
    opacity: 0.9;
}

.card-body-custom {
    padding: 40px;
}

/* ========== SELECTOR DE TIPO ========== */

.type-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.type-card {
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    width: 200px;
    background: white;
}

.type-card:hover {
    border-color: #2c5aa0;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(44,90,160,0.3);
}

.type-card i {
    font-size: 48px;
    color: #2c5aa0;
    margin-bottom: 15px;
    display: block;
}

.type-card h5 {
    color: #333;
    margin-bottom: 8px;
}

.type-card small {
    color: #666;
}

/* ========== FORMULARIOS ========== */

.form-section {
    display: none;
}

.section-title {
    color: #333;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.section-title:first-child {
    margin-top: 0;
}

.section-title i {
    color: #2c5aa0;
    margin-right: 10px;
}

/* ========== CAMPOS DE FORMULARIO ========== */

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.form-control:focus,
.form-select:focus {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 0.2rem rgba(44,90,160,0.15);
}

.form-control.error,
.form-select.error {
    border-color: #dc3545;
}

label.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.password-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.tooltip-icon {
    color: #17a2b8;
    cursor: help;
    margin-left: 5px;
}

.input-group-text.toggle-password {
    cursor: pointer;
    background: white;
    border-left: none;
}

.input-group-text.toggle-password:hover {
    background: #f8f9fa;
}

/* ========== BOTONES ========== */

.btn-primary-custom {
    background: #2c5aa0;
    border: none;
    color: white;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background: #1e4070;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44,90,160,0.3);
    color: white;
}

.btn-outline-secondary {
    background: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #6c757d;
    transform: translateY(-2px);
}

/* ========== ALERTAS ========== */

#alertContainer {
    margin-bottom: 20px;
}

.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 20px;
}

.alert i {
    margin-right: 8px;
}

/* ========== LINK DE LOGIN ========== */

.login-link {
    margin-top: 20px;
}

.login-link a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ========== PANEL DE ACCESIBILIDAD ========== */

.accessibility-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2c5aa0;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.accessibility-toggle:hover {
    background: #1e4070;
    transform: scale(1.1);
}

.accessibility-options {
    position: absolute;
    right: 60px;
    top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accessibility-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #2c5aa0;
    background: white;
    color: #2c5aa0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-btn:hover {
    background: #2c5aa0;
    color: white;
}

/* Estados de tamaño de fuente */
body.font-large {
    font-size: 18px;
}

body.font-xlarge {
    font-size: 20px;
}

/* Alto contraste */
body.high-contrast {
    filter: contrast(1.5);
}

body.high-contrast .registration-card {
    box-shadow: 0 0 0 2px #000;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .type-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .type-card {
        width: 100%;
        max-width: 300px;
    }
    
    .card-body-custom {
        padding: 20px;
    }
    
    .accessibility-panel {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .card-header-custom h2 {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 16px;
    }
}
/* ========== HEADER ========== */

.header-gov {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content img {
    height: 60px;
    object-fit: contain;
}

.header-content a {
    transition: opacity 0.3s;
}

.header-content a:hover {
    opacity: 0.8;
}

/* ========== FOOTER ========== */

.footer-full {
    background-color: #2c5aa0;  /* Cambiar de #f8f9fa a azul institucional */
    color: #fff;  /* Cambiar texto a blanco */
    margin-top: 50px;
    border-top: 3px solid #1e4070;  /* Borde más oscuro */
}

.footer-full strong {
    color: #fff;  /* Cambiar de #2c5aa0 a blanco */
    display: block;
    margin-bottom: 10px;
}

.footer-full p {
    margin-bottom: 15px;
    color: #fff;  /* Asegurar que los párrafos sean blancos */
}

.footer-full a {
    color: #a8d0ff;  /* Links en azul claro */
    text-decoration: none;
}

.footer-full a:hover {
    text-decoration: underline;
    color: #fff;  /* Blanco al hover */
}

.footer-full hr {
    border-color: rgba(255, 255, 255, 0.2);  /* Línea divisoria semi-transparente */
}

.btn-floating {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;  /* Botones blancos */
    color: #2c5aa0;  /* Iconos azules */
    border: none;
}

.btn-floating:hover {
    background: #1e4070;  /* Azul oscuro al hover */
    color: white;
    transform: scale(1.1);
}

.ubicacionMaps a {
    color: #a8d0ff;  /* Links del mapa en azul claro */
}