/* Estilos generales */

.container-job-top {
    margin-top: -60px;
    width: 100%;
    box-shadow: 0 0 10px rgba(49, 49, 49, 0.80);
    flex-wrap: wrap;
}

.container-job {
    width: 100%;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: flex-start; /* Alinear los elementos al inicio verticalmente */
}

.container-job-detail {
    width: 100%;
    background-color: #fff;
    padding: 20px;
    display: block;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container-job-detail-columns {
    display: flex;
}
/* Barra vertical */
.vertical-bar {
  width: 2px; /* Ancho de la barra */
  height: 42px; /* Para que cubra el tamaño del `li` */
  background-color: #c22e37; /* Color de la barra */
  margin: 0 10px; /* Espaciado entre la imagen y el texto */
}

.left-column {
    flex: 0 0 30%;
    padding: 0 20px 0 0;
    min-height: 200px;
}

.left-column input, .left-column select {
    width: 100%;
    padding: 5px 10px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    font-size: 16px;
}

.left-column input::placeholder {
    color: #aaa;
}

.left-column .search-button {
    text-align: center;
    border: none;
    cursor: pointer;
}

/* Estilos back-button */

.back-button {
    display: flex;
    color: #004887;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

/* Estilos para boton regresar e icono*/
.back-ico {
    font-size: 28px;
    vertical-align: middle;
    margin-right: 5px;
}

.back-text {
    vertical-align: middle;
}

/* Estilos para formulario */

/* Secciones para formulario */

.container-job-form {
    display: flex;
    justify-content: center;
}

.right-column-form {
    flex:1;
}

.left-column-form {
    flex: 0 0 30%;
}

.container-job-form .left-column-form p {
    margin: 0;
    font-size: 0.8em;
}

.container-job-form .left-column-form h4 {
    margin-bottom: 0;
}
.search-form-container {
    margin-top: 30px;
}

.search-row {
    display: flex;
    align-items: center;
}

.search-button {
    background: none;
    border: none;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
}

.search-icon {
    width: 24px;
    height: 24px;
}

/* Estilos para el contenedor del select */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
/* Flecha utilizando un pseudo-elemento */
.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px; /* Ajusta la posición horizontal */
    top: 50%;    /* Centra verticalmente */
    transform: translateY(-50%); /* Ajusta la posición vertical */
    pointer-events: none; /* Permite hacer clic en el select */
    color: rgb(64, 77, 96); /* Color de la flecha */
    font-size: 16px; /* Tamaño de la flecha */
}

/* Mensajes de alerta */

.alert-message {
    background-color: #fff4e5; /* Fondo amarillo pastel */
    color: #5c5c5c; /* Texto gris oscuro */
    padding: 10px 20px; /* Espacio interno */
    border-radius: 5px; /* Bordes sutilmente redondeados */
    border-left: 5px solid #ffc107; /* Línea decorativa en el borde izquierdo */
    font-family: Arial, sans-serif; /* Tipografía */
    font-size: 15px; /* Tamaño de fuente */
    margin: 15px 0; /* Espacio superior e inferior */
}

.success-message {
    background-color: #e8f5e9; /* Fondo verde claro */
    color: #2e7d32; /* Texto verde oscuro */
    padding: 10px 20px; /* Espacio interno */
    border-radius: 5px; /* Bordes sutilmente redondeados */
    border-left: 5px solid #66bb6a; /* Línea decorativa en el borde izquierdo */
    font-family: Arial, sans-serif; /* Tipografía */
    font-size: 15px; /* Tamaño de fuente */
    margin: 15px 0; /* Espacio superior e inferior */
  }


/* Estilos para el input y el select */

.ubicacion-select {
    width: 100%;
    padding: 8px 10px;
    padding-right: 40px; /* Añade espacio para la flecha */
    border-radius: 50px;
    border: 1px solid #ddd;
    background-color: transparent; /* Transparente para mostrar el fondo del contenedor */
    font-size: 16px;
    color: rgb(64, 77, 96);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    appearance: none;
    -webkit-appearance: none; /* Para Safari y Chrome */
    -moz-appearance: none;    /* Para Firefox */
    cursor: pointer; /* Cambia el cursor al pasar sobre el select */
}

.search-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-style: normal;
    color: rgb(64, 77, 96);
}

/* Estilos para el placeholder del input */
.search-input::placeholder {
    color: #aaa;
    font-style: normal;
}

/* Estilos para la opción placeholder del select */
.ubicacion-select option[disabled] {
    color: rgb(64, 77, 96);
    font-style: normal;
}

/* Asegurar que el texto seleccionado en el select tenga el color correcto */
.ubicacion-select {
    color: rgb(64, 77, 96);
}
/* Fin Estilos para formulario */

/* Estilos para Columna Derecha */
.left-column .divider {
    width: 100%;
    height: 2px;
    background-color: #e7e7e7;
    margin: 10px 0;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px; /* Ajusta este valor según tus necesidades */
    min-width: 750px;
}

/* Estilos para el mensaje de carga */
.loading-message {
    font-size: 18px;
    color: #666;
    text-align: center;
}

.job-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-main p {
    margin-top: 0;
    margin-bottom: 0;
}

.right-column h3, .right-column p {
    margin: 0px;
}

/* Listado de trabajos */
ul.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-list li, .right-column ul li {
    background-color: #f5f5f5;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.job-info, .right-column ul li .job-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.job-info h2, .right-column ul li h2 {
    font-size: 16px;
    color: #004887;
    margin: 0;
    font-weight: bold;
}

.job-info p, .right-column ul li p {
    color: #666;
    font-size: 14px;
}

.right-column ul li img {
    width: 35px;
}

.job-list li .button, .right-column ul li .button, .button.primary {
    background-color: #c22e37;
    color: white;
    padding: 2px 15px;
    border-radius: 50px;
    border:0px;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button.aplicar {
    background-color: #c22e37;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: large !important;
    border:0px;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.job-list li .button:hover, .right-column ul li .button:hover {
    background-color: #c22e37;
}

/* Estilos para sección jobs detail*/
.left-column-jobs-detail {
    flex: 0 0 75%;
    padding: 20px 20px 0 0;
    min-height: 200px;
}

.right-column-jobs-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.container-job-detail {
    width: 1140px;
    background-color: #fff;
    padding: 30px;
    display: inline-block;
    gap: 20px;
    align-items: flex-start;
}

.job-header {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.job-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button.secondary {
    padding: 10px 20px;
    border-radius: 50px;
    background-color: #e7e7e7;
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.divider {
    width: 100%;
    height: 2px;
    background-color: #e7e7e7;
    margin: 10px 0;
}

.job-sidebar {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    display: flex;
}

.social-link {
    margin-right: 10px;
    font-size: 18px;
    color: #666;
}

.social-link:hover {
    color: #004887;
}

.top-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    height: 180px;
    margin-top: -240px;
}

.img-left {
    flex: 0 0 30%; /* Ocupa el 30% del ancho */
}

.img-left img {
    max-width: 60% !important;
    height: auto;
    margin-left: 100px;
}

.top-title-right {
    flex: 0 0 70%; /* Ocupa el 70% del ancho */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.job-title {
    color: white !important;
    font-size: 1.5em !important;
    margin: 0;
    padding-left: 10px; /* Espacio para separar del borde izquierdo */
    font-weight: bold;
}

.job-title-detail {
    text-transform: uppercase;
    color: #004887;
}

/* Estilo para el spinner */
.spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #004887; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: auto; /* Centrar el spinner */
}

/* Estilo ventana modal - aplicacion exitosa */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para seccion Detalle, en pagina detail-job */
.details-section {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px; 
    color: #8f8f8f;
}
  
.details-section h2 {
    font-size: 1.1em !important;
    color: #8f8f8f !important;
    margin: 0 !important;
    padding: 10px 0 !important;
}
  
.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
  
.detail-item i {
    font-size: 2em;
    margin-right: 15px;
    color: #999;
}
  
.detail-item h3 {
    margin: 0;
    font-size: 0.8em;
    color: #666;
}
  
.detail-item p {
    margin: 0;
    font-size: 0.9em;
    color: #333;
}

/* Iconos Detail */

.icon-crm {
    width: 25px;  /* Ajusta el tamaño del ícono según necesites */
    height: 25px;
    margin-right: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-categoria {
    background-image: url('https://cornerstone.com.pe/wp-content/uploads/2024/09/categoria-ico.png');
}

.icon-sector {
    background-image: url('https://cornerstone.com.pe/wp-content/uploads/2024/09/sector-ico.png');
}

.icon-jornada {
    background-image: url('https://cornerstone.com.pe/wp-content/uploads/2024/09/jornada-ico.png');
}

.icon-nivel {
    background-image: url('https://cornerstone.com.pe/wp-content/uploads/2024/09/nivel-ico.png');
}


/* Estilos para formulario de aplicación */
.form-group {
    width: 50%;
    box-sizing: border-box;
    padding: 10px;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
}
.form-row .form-group label {
    padding-bottom: 5px;
    font-size: 14px;
}
.form-row .form-group input {
    width: 100%;
    padding: 14px;
    margin-top: 2px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
}

.form-row .form-group input::placeholder {
    color: #aaa;
}

.container-job-main {
    display: flex;
    flex-direction: column;
}

/* Selecciona solo el input file dentro de .right-column-form */
.right-column-form .custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    color: black; /* Cambia el color del texto a negro */
    background-color: #aaa; /* Cambia el color del botón a #aaa */
    border-radius: 25px; /* Borde más redondeado */
    cursor: pointer;
    font-size: 16px;
    border: none;
    width: 100%; /* Ocupa el 100% del ancho */
    box-sizing: border-box;
    margin: 0;
    line-height: normal;
}

.right-column-form .custom-file-upload .icon-left {
    width: 24px; /* Ajusta el tamaño del ícono */
    height: 24px;
    margin-right: 10px; /* Espacio entre el ícono y el texto */
}
.form-row-full {
    width: 100%;
}
  
/* Cambiar el color cuando se pasa el mouse por encima */
.right-column-form .custom-file-upload:hover, .button.aplicar:hover {
    background-color: #97abc1;
    color:#333;
    cursor: pointer;
}
  
/* Ocultar el input file real */
.right-column-form input[type="file"] {
   display: none;
}
  
.dashed-divider {
    border-top: 2px dashed #ccc;
    margin: 20px auto;  /* 'auto' en los márgenes horizontales centra el divisor */
    width: 100%;         /* El divisor ocupará el 80% del ancho del contenedor */
}

  
/* Estilo del span para mostrar el nombre del archivo seleccionado */
.right-column-form #file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}
  

/* Fin Estilos para formulario de aplicación*/

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .job-container, .container {
        padding: 20px;
        flex-direction: column;
    }

    .back-button {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .job-title {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .job-actions {
        flex-direction: column;
    }

    .button.primary, .button.secondary {
        width: 100%;
        text-align: center;
    }

    .job-main, .job-sidebar {
        flex: 100%;
        padding: 15px;
    }

    .job-main h3, .job-main p, .job-sidebar h3, .job-sidebar p {
        font-size: 16px;
    }
}

/* Estilos para la sección superior */
.top-section {
    width: 100%;
    display: flex;
    align-items: center;
    background: url(https://cornerstone.com.pe/wp-content/uploads/2024/10/fondoCESx1140.jpg);
    padding: 60px 30px;
    box-sizing: border-box;
    color: #ffffff; 
    box-shadow: 0 0 10px rgba(49, 49, 49, 0.80);
    height: 240px;
}

.top-section .top-section-img-left {
    flex: 0 0 auto;
    margin-right: 20px; /* Espacio entre la imagen y el texto */
}

.top-section .top-section-img-left .image-container {
    background-color: #ffffff;
    border-radius: 50px;
    padding: 10px 0px;
}

.top-section .top-section-img-left .image-container img {
    max-width: 250px; 
    height: auto;
    display: block;
}

.top-section .top-title-right {
    text-align: left; /* Alineado a la izquierda */
}

.top-section .top-title-right .top-section-text {
    margin: 0;
    font-size: 20px; 
    max-width: 55%;
    color: white;
}

.top-section .top-title-right .top-section-text strong {
    font-weight: bold;
}

.top-detail-jobs-tile {
    color: white !important;
    font-size: 30px !important;
    line-height: normal;
    max-width: 65%;;
}


@media screen and (max-width: 768px) {
    /* Estilos responsivos para pantallas pequeñas */
    .top-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .top-section .top-section-img-left {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .top-section .top-title-right {
        flex: 1 1 auto;
    }
    .top-section .top-title-right .top-section-text {
        font-size: 14px;
        text-align: center;
    }
}



/* Ajustes para tabletas */
@media (min-width: 769px) and (max-width: 1024px) {
    .job-container {
        padding: 30px;
    }

    .job-title {
        font-size: 28px;
    }

    .job-actions {
        flex-direction: row;
        justify-content: space-between;
    }

    .button.primary, .button.secondary {
        width: 45%;
    }

    .job-main h3, .job-sidebar h3 {
        font-size: 22px;
    }

    .job-main p, .job-sidebar p {
        font-size: 16px;
    }

    .job-details {
        gap: 20px;
    }

    .job-sidebar {
        padding: 20px;
    }

    .container-job {
        display: block;
    }

    .top-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border-radius: 5px;
        height: 180px;
    }
}
