.wrap {
    max-width: 1250px;
    margin: 0 auto;
    width: 90%;
}


.hero-section {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.vacantes-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.vacante-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.vacante-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.vacante-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.vacante-card-body {
    padding: 1.2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vacante-nombre {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a202c;
}

.vacante-fecha {
    font-size: 0.95rem;
    color: #6b7280;
}

.vacante-salario {
    font-size: 1.1rem;
    color: #2563eb;
    font-weight: 600;
}

.vacante-descripcion,
.vacante-beneficios,
.vacante-actividades {
    font-size: 1rem;
    color: #374151;
}

.vacante-link {
    margin-top: 1rem;
    text-align: right;
}

.vacante-link a {
    background: #2563eb;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.vacante-link a:hover {
    background: #1e40af;
    color: #fff
}

.vacante-card ul {
    list-style: initial;
}

.vacante-card ul li p {
    margin: 0;
}

@media (max-width: 900px) {
    .vacantes-lista {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .vacantes-lista {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vacante-card img {
        height: 140px;
    }

    .vacante-card-body {
        padding: 1rem;
    }
}

.main-content {
    display: flex;
    gap: 30px;
    margin: 40px 20px;
}

.content {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.content ul {
    list-style-type: initial;
    padding: 0;
    margin-left: 20px;
}

.content ul li p {
    margin: 0;
}

.content h2 {
    font-size: 1.8rem;
    color: #1a202c;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.content-item {
    margin-bottom: 30px;
}

.content-item ul {
    margin-left: 20px;
}


.sidebar {
    flex: 1;
    background: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column !important;
    }
}

.vacantes-ver-todas {
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vacantes-ver-todas a {
    display: inline-block;
    background: red;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.vacantes-ver-todas a:hover {
    color: #fff;
}


.pagination {
    display: flex;
    justify-content: center;
    margin: 2em 0;
    gap: 0.5em;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 1em;
    color: #333;
    background: #f3f3f3;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #0073aa;
    color: #fff;
}

.pagination .page-numbers.dots {
    background: none;
    color: #888;
    pointer-events: none;
}





.formulario form {
    display: grid;
    gap: 1rem;
}

.formulario form label {
    width: 100%;

}

/* Que todos los campos ocupen 100% */
.formulario form input[type="text"],
.formulario form input[type="email"],
.formulario form input[type="tel"],
.formulario form input[type="file"],
.formulario form input[type="submit"],
.formulario form textarea,
.formulario form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* En pantallas grandes, dos columnas SOLO para los primeros dos campos */
@media screen and (min-width: 768px) {
    .formulario form {
        grid-template-columns: 1fr 1fr;
    }

    .formulario form p:nth-of-type(1),
    .formulario form p:nth-of-type(2) {
        grid-column: auto;
    }

    .formulario form p:nth-of-type(n+3),
    .formulario form input[type="hidden"],
    .formulario form .wpcf7-response-output {
        grid-column: 1 / -1;
    }
}