/* ================== PALETA & VARS (tu base) ================== */
:root {
    --c-turquoise: #14baa6;
    --c-blue: #001e42;
    --c-black: #000;
    --c-text: #1d242d;
    --c-muted: #333;
    --c-border: #e6e6e6;
    --c-shadow: rgba(0, 0, 0, .10);
}

/* ================== LAYOUT/EMPLEOS (tu base) ================== */
.employments-div .employments {
    padding-left: 0;
    padding-right: 0;
}

/* ----- Filtros / acordeones ----- */
.filters .inline-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.inline-container {
    background: #fff;
    margin-bottom: 2em;
    box-shadow: 0 0 10px 0 var(--c-shadow);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 16px;
}

.filters-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 8px;
    font-weight: 600;
    color: var(--c-blue);
}

.collapsible {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px 8px;
    line-height: 1;
    font-size: .95rem;
}

.collapsible:focus {
    outline: 2px solid transparent;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.collapsible-content.show {
    max-height: 600px;
}

/* ----- Checkboxes ----- */
.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    user-select: none;
    cursor: pointer;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 1em;
    height: 1em;
    border: 2px solid #000;
    background: #fff;
    display: inline-block;
    position: relative;
}

.checkbox-container input:checked~.checkmark {
    background: var(--c-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    left: .25em;
    top: .05em;
    width: .3em;
    height: .55em;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(35deg);
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container input:disabled~.checkmark {
    background: #f0f0f0;
    border-color: #ccc;
    cursor: not-allowed;
}

.checkbox-container input:disabled~span:not(.checkmark) {
    color: #ccc;
}

/* ----- Off-canvas móvil ----- */
#mobile-filter-toggle {
    background: var(--c-blue);
    color: #fff;
    width: 3em;
    height: 3em;
    border: 0;
    border-radius: 6px;
}

#lateral-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 380px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .25s ease;
    background: #fff;
    z-index: 1051;
    overflow-y: auto;
    box-shadow: 0 0 24px rgba(0, 0, 0, .18);
    padding: 8px 0 16px;
}

#lateral-menu.open {
    transform: translateX(0);
}

#close-lateral-menu-div {
    display: flex;
    justify-content: flex-end;
    padding: 12px 12px 0;
}

#close-lateral-menu {
    background: var(--c-blue);
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 6px 10px;
}

#filters-column {
    padding: 12px;
}

#filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1050;
}

#filters-overlay.show {
    opacity: 1;
    visibility: visible;
}

.body-no-scroll {
    overflow: hidden;
}

/* ----- Cabecera de filtros activos ----- */
#buttons-filters-row {
    background: #fff;
    display: none;
    align-items: center;
    margin: 0 0 12px 0;
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
}

.selected-filters {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 5px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 6px;
}

#active-filters {
    padding: 0;
}

#delete-filters {
    padding: 0;
    text-align: right;
}

/* ----- Listado ----- */
.employments {
    padding: 0;
}

.employment-row {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    margin: 0 0 12px 0 !important;
    min-height: 7em;
}

.employment-name {
    color: var(--c-blue);
}

.more-information {
    background: var(--c-turquoise);
    color: #fff;
    border: 1px solid var(--c-turquoise);
    border-radius: 7px;
    width: 100%;
    padding: 5px;
    border: 0;
}

.more-information:focus {
    outline: none;
}

.employment-labels {
    font-size: 14px;
    border-radius: 7px;
    padding: 2px 10px;
    color: #fff;
    border: 0;
    margin: 1em;
}

#employment_category {
    background: var(--c-blue);
    border-color: var(--c-blue);
}

#employment_experience {
    background: #000;
    border-color: #000;
}

.employment-image {
    width: 5em;
    height: 5em;
    object-fit: cover;
}

/* ================== FICHA SELECCIONADA (merge) ================== */
/* Cabecera nombre responsivo */
#selected-employment-name.h3 {
    margin-bottom: .25rem;
}

@media (min-width:576px) {
    .h2-sm {
        font-size: calc(1.325rem + .9vw);
    }
}

/* Contenedor ficha */
.selected-employment-row {
    justify-content: center;
    margin: 2em 0 !important;
    padding: 0;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
}

.selected-employment-row div {
    margin: 1em 0;
}

#employment-image {
    width: 12em;
}

.employment-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Panel detalles */
#details-grid {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    padding-bottom: 12px;
    margin-bottom: 1em;
}

@media (min-width:992px) {
    #details-grid {
        padding: 20px 20px 12px;
    }
}

#details-grid h2 {
    color: var(--c-blue);
}

.details-and-buttons-grid {
    margin: 0 !important;
    padding: 0 !important;
}

/* Bloques de detalle */
.detail-data {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1em;
}

.detail-data-text p {
    margin: 0;
    color: var(--c-text);
}

.detail-icons {
    color: var(--c-blue);
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 2px;
    min-width: 24px;
}

/* Texto/Lists */
.selected-employment-p {
    color: var(--c-text);
}

.details-list-ul {
    list-style: none;
    padding-left: 0;
    color: #333;
}

.details-list-li {
    position: relative;
    padding-left: 1.25em;
}

.details-list-li::before {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--c-blue);
}

/* sublista */
#desired-requirement-sublist {
    list-style: none;
    padding-left: 0;
    color: #333;
}

#desired-requirement-sublist #requirement-sublist {
    position: relative;
    padding-left: 1.75em;
}

#desired-requirement-sublist #requirement-sublist::before {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: .5em;
    color: var(--c-blue);
}

/* Chips habilidades */
.required-skills-button {
    display: inline-block;
    font-size: 14px;
    padding: 10px 14px;
    background: #eaeaea;
    border-radius: 20px;
    line-height: 1;
    margin: 10px 14px 0 0;
    color: #333;
    font-weight: 500;
    border: 0;
}

.required-skills-button:hover {
    cursor: default;
}

/* Botonera lateral (merge: sticky en desktop, bloque en móvil) */
#details-buttons-grid {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    position: static;
    height: fit-content;
}

@media (min-width:992px) {
    #details-buttons-grid {
        position: sticky;
        top: 120px;
        max-height: none;
    }
}

.details-buttons {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 6px;
    padding: 14px 12px;
    line-height: 1;
    border: 1px solid transparent;
    transition: .2s ease;
    color: #fff;
}

.details-buttons a:hover {
    color: #ffb14a;
}

.details-buttons a {
    color: inherit;
}

#application-button {
    background: var(--c-turquoise);
    border-color: var(--c-turquoise);
}

#application-button:hover {
    background: #fff;
    color: var(--c-turquoise);
    border-color: var(--c-turquoise);
}

#contact-button {
    background: #ffb14a;
    border-color: #ffb14a;
}

#contact-button:hover {
    background: #fff;
    color: #ffb14a;
    border-color: #ffb14a;
}

.button-detail-icon {
    color: inherit;
    margin-right: .5em;
}

.selected-employment-labels {
    gap: 8px;
}

/* ================== RESPONSIVE (tu base + ajustes) ================== */
@media (max-width:600px) {
    #employments-list {
        width: 100%;
        margin-left: 0;
    }

    .employment-row {
        padding: 1em;
    }
}

@media (max-width:991.98px) {
    .employments-div {
        margin-top: 12px;
    }

    .employment-row {
        padding: 1em;
    }

    /* botonera en móvil = bloque normal (ya forzado arriba con position:static) */
}

@media (max-width:767.98px) {
    #delete-filters {
        display: none !important;
    }
}

/* Off-canvas: tablet deja hueco por header fijo */
@media (min-width:576px) and (max-width:991.98px) {
    #lateral-menu {
        top: 120px !important;
        height: calc(100vh - 120px) !important;
    }
}

/* Off-canvas: móvil ocupa toda la pantalla */
@media (max-width:575.98px) {
    #lateral-menu {
        top: 0 !important;
        height: 100vh !important;
    }
}

/* popup más ancho pero fluido en móvil */
.swal2-popup.apply-job {
    width: min(780px, 95vw) !important;
    border-radius: 14px;
    padding: 1.25rem 1.5rem 1rem;
}

/* grid de filas/columnas */
.swal-row {
    display: flex;
    gap: 1rem;
}

.swal-col {
    flex: 1;
}

/* responsive: en pantallas pequeñas 1 columna */
@media (max-width:640px) {
    .swal-row {
        flex-direction: column;
    }

    .swal-col {
        width: 100%;
    }
}

/* inputs uniformes + file */
.swal2-popup.apply-job .swal2-input,
.swal2-popup.apply-job .swal2-textarea,
.swal2-popup.apply-job .swal2-file {
    height: 48px;
    min-height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: .65rem .9rem;
    margin: .45rem 0;
    font-size: 15px;
    width: 100%;
}

.swal2-popup.apply-job .swal2-textarea {
    resize: vertical;
    line-height: 1.3;
}

.swal-field label {
    display: block;
    font-size: .85rem;
    color: #4b5563;
    font-weight: 600;
    margin: .35rem 0 .25rem;
}

.help {
    font-size: .78rem;
    color: #6b7280;
    margin-top: .15rem;
}

/* botones: solo confirmar, ancho completo */
.swal2-popup.apply-job .swal2-actions {
    width: 100%;
    display: block;
    margin: 1rem 0 0 !important;
}

.swal2-popup.apply-job .swal2-styled {
    width: 100%;
    border-radius: 10px !important;
    padding: .85rem 1rem;
    font-weight: 700;
    font-size: 15px;
    margin: 0 !important;
}

.swal2-popup.apply-job .swal2-styled.swal2-confirm {
    background: #14baa6 !important;
}

.swal2-popup.apply-job .swal2-styled.swal2-confirm:hover {
    background: #0f8b7f !important;
}

/* estiliza la X de cerrar */
.swal2-popup.apply-job .swal2-close {
    box-shadow: none !important;
    opacity: .9;
    color: #374151;
}

.swal2-popup.apply-job .swal2-close:hover {
    opacity: 1;
}