body {
    margin: 0;
    padding: 0;
}

.image1-fondo, .image2-fondo, .image3-fondo, .image4-fondo {
    position: fixed; 
    width: 100vw; 
    height: 100vh; 
    object-fit: cover; 
}

.image1-fondo {
    top: 0;
    left: 0;
    z-index: -1; 
}

.image2-fondo {
    top: 0;
    right: 0;
    z-index: -1;
}

.image3-fondo {
    bottom: 0;
    left: 0;
    z-index: -1;
}

.image4-fondo {
    bottom: 0;
    right: 0;
    z-index: -1;
}

.title-container {
    text-align: center;
}

.title {
    font-size: 2.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    display: inline-block; 
    border-radius: 5px;
    font-weight: bold;
}


.search-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 220, 220, 0.5), rgba(255, 248, 248, 0.9));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #ff7b54;
    box-shadow: 0 0 5px rgba(255, 123, 84, 0.5);
}

.search-button {
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #ff7b54;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #ff5733;
}


.job-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; 
    padding: 20px;
    margin-top: 70px;
}

.job-card {
    flex: 1 1 calc(25% - 30px);
    padding: 30px;
    text-align: center;
    background: #f7f7f7;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: #ffe0cc;
}

.job-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ff7b54;
    font-weight: bold;
}

.job-card p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}


.back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.back-button i {
    margin-right: 8px; 
}

.back-button:hover {
    background-color: #0056b3;
    color: white;
}

.title {
    text-align: center;
    margin: 30px;
    font-size: 2.5rem;
    color: #333;
}

.offer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    margin-top: 40px;
}

.offer-card {
    flex: 1 1 calc(33.33% - 20px); /* 3 por fila */
    padding: 20px;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-size: 1rem;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.offer-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ff7b54;
    font-weight: bold;
    text-align: center;
}

.offer-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    margin-bottom: 10px;
    text-align: center;
}

.offer-card ul {
    font-size: 0.9rem;
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
    margin-top: 30px;
    text-align: center;
}

.offer-card li {
    color: #555;
    border-radius: 10px;
    text-align: center;
    margin: 5px;
    display: inline-block; 
    padding: 5px 10px;  
    background: #e2e4f3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.offer-card li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.publicacion {
    color: #555;
    border-radius: 10px;
    text-align: center;
    margin: 5px auto;
    padding: 5px 10px;
    font-weight: bold;
}


.apply-button {
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #ff7b54;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100%;
}

.apply-button:hover {
    background-color: #ff5733;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 9998; /* Un índice menor que el del modal */
    display: none; 
}

.overlay.open {
    display: block; 
}

.info-modal {
    position: fixed;
    top: 0;
    right: -50%; 
    width: 50%; 
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.info-modal.open {
    right: 0;
}

.info-modal-content {
    display: flex;
    flex-direction: column;
}

.close-modal {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin-top: 20px;
}

.close-modal:hover {
    background-color: #d32f2f;
}

.close-modal-x {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #555;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease;
}

.close-modal-x:hover {
    color: #ff7b54;
    transform: rotate(90deg);
}

.more-info-button {
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #ff2424;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100%;
}

.more-info-button:hover {
    background-color: #ff5454;
}

.titulo-detalles{
    text-align: center;
    font-weight: bold;
}

.publicacion1{
    color: #555;
    border-radius: 10px;
    text-align: center;
    margin: 5px;
    display: inline-block; 
    padding: 5px 10px;  
    background: #e2e4f3;
}

.subtitulo-detalles{
    font-weight: bold;
    font-size: 19px;
    margin-top: 50px;
}

.descripcion1 {
    color: #555;
    border-radius: 10px;
    text-align: center;
    display: block;
    max-width: 500px; 
    margin: 5px auto;
    padding: 5px 10px;

}

.titulo-nombre{
    display: flex; justify-content: center;
}



.info-modal .info-modal-content ul {
    margin-top: 30px;
    padding: 0;
    list-style: none;  /* Elimina los puntos del <ul> */
    text-align: center; /* Centra el texto de los <li> */
}

.info-modal .info-modal-content li {
    color: #555;
    border-radius: 10px;
    text-align: center;
    margin: 10px 0;
    padding: 10px 20px;  
    background: #e2e4f3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; 
    width: 60%; 
    margin-left: auto;
    margin-right: auto;
}

.info-modal .info-modal-content li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.info-modal .info-modal-content .ul2 {
    padding: 0;
    list-style: none;  
    margin: 20px 0;
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-around;  
}

.info-modal .info-modal-content .li2 {
    color: #555;
    border-radius: 10px;
    text-align: left;
    margin: 10px;
    padding: 10px 20px;
    background: #e2e4f3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;  
    align-items: center;  
    width: calc(50% - 20px); 
}

.info-modal .info-modal-content .li2 i {
    margin-right: 10px; 
    color: #28a745;  
}

.info-modal .info-modal-content .li2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.apply-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
    overflow-y: auto;
}

.apply-modal-content {
    position: relative; 
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 80%;
    overflow-y: auto;
}


.apply-form label {
    grid-column: span 2;
    font-weight: bold;
    margin-top: 10px;
}

.apply-form input, .apply-form textarea{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.apply-form textarea {
    resize: vertical;
}

.submit-apply {
    width: 100%;
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 10px;
}

.close-modal1 {
    grid-column: span 2;
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
}


.submit-apply:hover {
    background-color: #218838;
}

.close-modal-x1 {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ff5722;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: transform 0.2s ease;
    z-index: 10; 
}

  .close-modal-x1:hover {
    transform: rotate(90deg);
  }

.close-modal123 {
    border-radius: 10px;
    width: 100%;
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin-top: 20px;
}

.close-modal123:hover {
    background-color: #d32f2f;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.map-modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.map-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.map-button {
    background: rgb(240, 17, 128);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.map-button:hover {
    background: rgb(252, 64, 158);
}

.go-to-offer-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #ff5722;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    text-decoration: none !important;
    width: 100%;
}

.go-to-offer-button:hover {
    background-color: #e64a19;
}
