/* Estilo general */
.postulantes-access-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.postulantes-login-section, 
.postulantes-register-section {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

/* Sección de Login */
.postulantes-login-section {
    flex: 1;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}



.postulantes-login-section h1 {
    text-align: center;
    color: #2c3e50 ;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    gap: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    
}

.form-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 16px;
}

.form-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-options input[type="checkbox"] {
    margin-right: 8px;
}

.info-link {
    margin-left: 5px;
    color: #FA1188;
    text-decoration: none;
    cursor: pointer;
}

.info-link:hover {
    text-decoration: underline;
}

.btn-login {
    color: white;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    display: block;
    width: 100%;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Mismo azul del botón REGÍSTRATE */
.btn-login {
    background: #2196F3;
}

.btn-login:hover {
    background: #0b7dda; /* igual que .btn-register:hover */
}

.info-link-session {
    margin-left: 5px;
    font-size: 14px;
    color: #FA1188;
    text-decoration: none;
}

.info-link-session:hover {
    text-decoration: underline;
}

.info-content {
    display: none;
    margin-top: 5px;
    font-size: 14px;
    color: #444;
}

.info-content.expanded {
    display: block;
}




.popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.close-popup {
    margin-top: 20px;
    padding: 10px 20px;
    background: #FA1188;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.close-popup:hover {
    background: #e01078;
}






.empresa-access {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
}

.empresa-access a {
    color: #FA1188;
    text-decoration: none;
}

.empresa-access a:hover {
    text-decoration: underline;
}

/* Sección de Registro */
.postulantes-register-section {
    flex: 1;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.postulantes-register-section h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e0e0e0;
}

.benefit-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.benefit-item .icon {
  background: #FA1188;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 16px;
  margin-top: 3px;
}

.benefit-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.benefit-item p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5; /* Ajusta aquí si se ve demasiado separado */
}


.btn-register {
    display: block;
    width: 100%;
    padding: 14px;
    background: #2196F3;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-register:hover {
    background: #0b7dda;
}

.help-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.help-section a {
    color: #FA1188;
    text-decoration: none;
}

.help-section a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .postulantes-access-container {
        flex-direction: column;
    }
    
    .postulantes-login-section,
    .postulantes-register-section {
        width: 100%;
    }
}

/* ESTILOS PARA REGISTRO MULTIFASE */
.postulantes-register-container {
    max-width: 420px !important;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.register-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.register-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: #eee;
    z-index: 1;
}

.progress-step {
    text-align: center;
    z-index: 2;
    position: relative;
}

.progress-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
    background: #eee;
    color: #777;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

.progress-step p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.progress-step.active span {
    background: #2196F3;
    color: white;
}

.progress-step.active p {
    color: #333;
    font-weight: bold;
}

.register-phase {
    display: none;
}

.register-phase.active {
    display: block;
}

.password-strength {
    margin-top: 8px;
}



/* Barra simplificada */
.strength-bar {
    height: 5px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 5px;
    width: 0%;
    transition: width 0.5s ease, background 0.5s ease;
}

.strength-text span {
    font-weight: bold;
    color: #e74c3c;
}

.email-status {
    font-size: 13px;
    margin-top: 5px;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    font-weight: bold;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
    background: transparent !important; /* Añadir esto */
    box-shadow: none !important; /* Añadir esto */
}

#birthdate-error {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

.form-group.invalid .error-message {
    display: block;
}

.form-group.invalid input {
    border: 2px solid #e74c3c;
}

.form-group.invalid .checkbox-group label {
    color: #e74c3c;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
    position: relative;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    display: inline;
    font-size: 14px;
    line-height: 1.5;
}

.register-phase label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.register-phase input[type="text"],
.register-phase input[type="email"],
.register-phase input[type="password"],
.register-phase input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.register-phase h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 18px;
}

.g-recaptcha {
    margin: 15px auto;
    display: flex;
    justify-content: center;
        cursor: pointer;
}

@media (max-width: 480px) {
    .postulantes-register-container {
        padding: 15px;
        margin: 10px auto;
    }
    
    .register-progress::before {
        top: 16px;
    }
    
    .progress-step span {
        width: 28px;
        height: 28px;
    }
    
    .g-recaptcha {
        transform: scale(0.8);
        transform-origin: left top;
    }
}

/* Mejorar visibilidad de estados */
.email-status.validating { color: #3498db; }
.email-status.valid { color: #2ecc71; }
.email-status.invalid { color: #e74c3c; }



.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding: 12px 40px 12px 15px; /* Añadido más padding derecho */
}

/* ICONO DE VISUALIZACIÓN */
.toggle-password {
    position: absolute;
    top: 12px; /* Ajusta según altura real del input */
    right: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 20px;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  fill: #888;
}



.toggle-group {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    padding: 10px 20px;
    border: 2px solid #2196F3;
    background: white;
    color: #2196F3;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background: #e3f2fd;
}

.toggle-btn.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-actions .btn-prev,
.form-actions .btn-next {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 6px;
    font-weight: bold;
}

.btn-prev {
    background-color: #95a5a6;
}

.btn-prev:hover {
    background-color: #7f8c8d;
}

.btn-next {
    background-color: #2196F3;
}

.btn-next:hover {
    background-color: #1a6080;
}


/* Fase 3: Experiencia Laboral */
.register-phase[data-phase="3"] textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    min-height: 120px;
    resize: vertical;
}

.char-count {
    color: #777;
    font-size: 13px;
}

/* Estilos para grupos inválidos */
.form-group.invalid .toggle-group {
    box-shadow: 0 0 0 2px #e74c3c;
    border-radius: 5px;
    padding: 5px;
}

.form-group.invalid .error-text {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 5px;
    display: block;
}


/* Add to the bottom of frontend.css */
.btn-add {
    display: block;
    width: 100%;
    padding: 12px;
    background: #2196F3;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add:hover {
    background: #0b7dda;
}

/* Experience item styling */
.experiencia-item {
    position: relative;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.remove-experiencia {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Add to bottom of CSS */
#agregar-experiencia {
    margin: 20px 0;
    display: block;
    width: 100%;
}

.experiencia-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    position: relative;
}

.remove-experiencia {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    width: 30px;
    height: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Añadir estilo para campos obligatorios */
.toggle-group.invalid {
    box-shadow: 0 0 0 2px #e74c3c;
    border-radius: 5px;
    padding: 5px;
}

/* Elimina el borde rojo alrededor de los grupos de botones */
.form-group.invalid .toggle-group {
    box-shadow: none !important;
}


#recaptcha-error.error-message {
    display: block !important; /* Forzar visualización */
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    padding: 5px;
    background: #fdecea;
    border-radius: 4px;
}

/* Mejorar visibilidad de campos inválidos */
.form-group.invalid .g-recaptcha {
    border: 1px solid #e74c3c;
    padding: 5px;
    border-radius: 4px;
}

/* En frontend.css */
#estudios_completados + .error-message {
    display: none !important;
}

/* Mostrar solo cuando sea necesario */
.form-group.invalid #estudios_completados + .error-message {
    display: block !important;
}
/* AGREGAR ESTO AL FINAL DEL ARCHIVO */
#recaptcha-error {
    display: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 5px 0 0 !important;
}
.recaptcha-container {
    position: relative;
    padding: 10px;
    cursor: pointer;
}




.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}
