/* Estilos específicos para el paso de Datos del Estudiante */

/* Permite controlar la posición vertical de los labels solo en este partial */
.datos-estudiante-form .floating-field label {
    top: 50% !important;
}

/* Ejemplo de ajuste específico solo para el label de Dirección */
.datos-estudiante-form .floating-field label[for="direccion"] {
    top: 25% !important; /* ajusta este valor libremente solo para Dirección */
}

/* Ajuste específico para el label de Email */
.datos-estudiante-form .floating-field label[for="email"] {
    top: 35% !important; /* ajusta este valor libremente solo para Email */
}

/* Ajuste específico para el label de Teléfono */
.datos-estudiante-form .floating-field label[for="telefono"] {
    top: 35% !important; /* ajusta este valor libremente solo para Teléfono */
}

/* Asegurar que los estados activos también respeten el estilo del partial */
.datos-estudiante-form .floating-field input:focus + label,
.datos-estudiante-form .floating-field input:not(:placeholder-shown) + label,
.datos-estudiante-form .floating-field textarea:focus + label,
.datos-estudiante-form .floating-field textarea:not(:placeholder-shown) + label,
.datos-estudiante-form .floating-field select:focus + label,
.datos-estudiante-form .floating-field select:not([value=""]) + label {
    top: 0 !important;
}

/* Secciones del formulario */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    letter-spacing: -0.01em;
}

/* Filas del formulario */
.form-row {
    margin-bottom: 24px;
}

.form-row.form-row--two-cols {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row.form-row--two-cols .form-col {
    flex: 1 1 0;
    min-width: 220px;
}

/* Foto de perfil */
.profile-photo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.profile-photo-wrapper {
    position: relative;
    display: inline-block;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-photo:hover {
    border-color: #00abb6;
    transform: scale(1.05);
}

.btn-upload-photo {
    margin-top: 12px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.btn-upload-photo:hover {
    background: #e9ecef;
    border-color: #00abb6;
    color: #00abb6;
}

/* Botón de selección de mapa */
.btn-select-map {
    margin-top: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
}

.btn-select-map:hover {
    background: #e9ecef;
    border-color: #00abb6;
    color: #00abb6;
}

/* Modal de mapa */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.map-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.map-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    letter-spacing: -0.01em;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: #f8f9fa;
    color: #212529;
}

.map-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Ajustes para selects en floating-field */
.floating-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
}

.floating-field select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300abb6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Input readonly */
.floating-field input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.floating-field input[readonly]:focus {
    background-color: #ffffff;
    cursor: text;
}
