body {
    font-family: "Montserrat", sans-serif;
    background-color: #E9E3DA;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .container {
        /* padding: 10rem 6rem 0; */
        padding-top: 10rem;
    }
}

.header {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.header > picture,
.header > picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-text {
    position: absolute;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .header {
        height: 100%;
    }

    .header-text {
        max-width: 300px;
    }
}

@media (min-width: 768px) {
    .header {
        margin-bottom: 50px;
    }
}

section {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    section {
        margin-bottom: 5rem;
    }
}

.section {
    max-width: 78rem;
    margin-left: auto;
    margin-right: auto;
}

.portal-empleo-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
}

@media (min-width: 768px) {
    .portal-empleo-section {
        flex-direction: row-reverse;
        align-items: center;
        text-align: left;
        padding: 0 1.25rem;
    }
}

.portal-empleo-section__title {
    font-family: "Prompt", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(4.1rem, 10vw, 140px);
    margin-bottom: 1rem;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    line-height: 1;
}

.portal-empleo-section__title span:last-of-type {
    margin-left: auto;
    margin-right: 0;
}

@media (min-width: 768px) {
    .portal-empleo-section__title {
        flex-direction: row;
        position: absolute;
        top: 0;
        left: 0;
        /* font-size: 133px; */
        transform: translateY(-50%);
    }

    .portal-empleo-section__title span:last-of-type {
        margin-left: .25em;
        margin-right: unset;
    }
}

.portal-empleo-content {
    width: 100%;
    position: relative;
}


.portal-empleo-content img {
    display: block;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .portal-empleo-content {
        width: 66.666667%;
    }

    .portal-empleo-content img {
        position: absolute;
        top: 20px;
        width: 70%;
    }
}

.portal-empleo-image-container {
    display: none;
}

@media (min-width: 768px) {
    .portal-empleo-image-container {
        display: block;
        width: 50%;
        padding: 0 clamp(1rem, 6vw, 80px);
        max-width: 430px;
        padding: 0 80px;
        justify-content: flex-end;
        order: 0;

    }
}

.portal-empleo-image {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 12rem;
    height: auto;
    object-fit: cover;
}

@media (min-width: 768px) {
    .portal-empleo-image {
        aspect-ratio: 2/3;
        max-width: none;
    }
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
    color: #4a5568;
}

/* --------------------- Contenedor principal --------------------- */
.form-section {
    max-width: 658px;
    margin: 0 auto 5rem;
}

/* --------------------- Estructura interna --------------------- */
.form-space-y > div {
    margin-bottom: 1.5rem;
}

/* --------------------- Etiquetas --------------------- */
.form-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: #4a5568;
}

/* --------------------- Inputs generales --------------------- */
.form-input {
    display: block;
    width: 100%;
    font-size: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid black;
    margin-top: 0.25rem;
    padding: 0 0 0.5rem;
}

.form-input:focus {
    outline: none;
}

.form-input::placeholder {
    color: black;
}

.form-input:focus::placeholder {
    color: grey;
}

/* --------------------- Select input --------------------- */
select.form-input {
    appearance: none;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid black;
    padding: 0 0 0.5rem;
}

/* --------------------- Input file oculto --------------------- */
/* Input file oculto completamente */
.custom-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Label que actúa como botón personalizado */
.custom-file-label {
    display: inline-block;
    background-color: #1a202c;
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    user-select: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.custom-file-label:hover {
    background-color: #2d3748;
}

/* --------------------- Ayuda debajo del campo --------------------- */
.file-input-help-text {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* --------------------- Bloque CV con imagen decorativa --------------------- */
.form-section__cv {
    text-align: center;
}

.form-section__arrow {
    margin: 20px;
}

.form-section__wrapper {
    border: 1px solid black;
    border-radius: 55px;
    padding: 2rem 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 780px) {
    .form-section__wrapper {
        padding: 2rem;
    }
}

/* --------------------- Checkbox política --------------------- */
.form-check-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* --------------------- Botón de envío --------------------- */
.submit-button-container {
    display: flex;
    justify-content: center;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: white;
    background-color: #1a202c;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #2d3748;
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5),
        0 0 0 4px rgba(75, 85, 99, 0.5);
}


.footer-images-section {
    position: relative;
    width: 100%;
    margin-top: 3rem;
    overflow: hidden;
}

.footer-images-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
}

.footer-images-wrapper::-webkit-scrollbar {
    display: none;
}

.footer-image {
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    scroll-snap-align: start;
    margin-right: 3%;
    flex-shrink: 0;
}

.footer-image:last-child {
    margin-right: 0;
}

@media (min-width: 768px) {
    .footer-image {
        width: 31.33%;
        min-width: 31.33%;
    }

    .footer-svg {
        max-width: 658px;
    }
}

@media (max-width: 767px) {
    .footer-image {
        width: 48%;
        min-width: 48%;
    }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(212, 203, 188, 0.91);
    color: black;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    user-select: none;
}

.slider-arrow.left-arrow {
    left: 10px;
}

.slider-arrow.right-arrow {
    right: 10px;
}

.slider-controls {
    display: none;
}

.footer-svg {
    width: 100%;
}





#mensaje-enviado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    justify-content: space-between;
    box-shadow: 0 0 12px -7px black;
}

#close-msg-btn {
    border: none;
    background-color: transparent;
    display: block;
    margin: 0 1rem;
}

#close-msg-btn :hover {
    cursor: pointer;
}

#close-msg-btn svg {
    display: block
}

::backdrop {
    background-image: #000000;
    opacity: 0.75;
}

#showPrivacy:link,
#showPrivacy:visited {
    color: #000;
    font-weight: bold;
}

dialog {
    max-height: 90vh;
}

.close-modal-btn {
    float: right;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 800px;
    max-width: 90vw;
    font-size: .9rem;
}

.modal-content p {
    font-size: .9rem;
}