/* Custom cursor styles */
body {
    cursor: initial;
}

body a,
body button {
    cursor: pointer;
}

.mf-cursor {
    display: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: rgba(245, 245, 245, 0.4);
    border: 1.5px solid #9EA5AF;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s ease-out, height 0.2s ease-out, background 0.2s;
}

.custom-cursor.is-pointer {
    width: 44px;
    height: 44px;
    background: rgba(158, 165, 175, 0.4);
}

.header-sidebar-wrap .header-sidebar-content {
    background-color: #2C3E4F;
    background-image: none;
}

/* Restaurar cursor nativo en la admin bar y todos sus hijos */
#wpadminbar,
#wpadminbar * {
    cursor: default !important;
}

#wpadminbar a,
#wpadminbar a * {
    cursor: pointer !important;
}

/* Ocultar bolita custom cuando esté sobre la admin bar */
.custom-cursor.is-over-adminbar {
    opacity: 0;
}

/* Ocultar en móvil/táctil */
@media (hover: none) {
    .custom-cursor {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* Other styles */
.about-sec {
    background: none;
    padding: 0;
}

.about-sec .section-header {
    margin-bottom: 0;
}

.footer-area .footer-bottom {
    height: fit-content;
}

.hamburg-menu {
    background-color: #364859;
    border: 2.5px solid #D9D9D9;
}

.elementor-button:hover .elementor-button-icon {
    filter: brightness(0) saturate(100%) invert(54%) sepia(8%) saturate(500%) hue-rotate(167deg) brightness(95%) contrast(89%);
}


@media screen and (max-width: 767px) {
    .service-box .service-inner {
        padding-left: 16px;
        padding-right: 16px;
        gap: 20px;
    }

    .service-box:hover {
        background: transparent;
    }

    .service-lists-header {
        display: none;
    }

    .feature-sec .section-header {
        margin-bottom: 0px;
    }
}

/* =========================================================
   Formulario Euromoda (CF7) — grid 8px, contenedor 1140px
   Paleta para seccion de fondo OSCURO (navy).
   Incluye overrides con !important para pisar el theme (Aixor).
   ========================================================= */

.euromoda-form {
    --ef-max: 1140px;
    --ef-gap: 24px;

    --ef-label: #eef1f4;
    --ef-text: #eef1f4;
    --ef-muted: #93a1b0;

    --ef-field-bg: rgba(255, 255, 255, 0.05);
    --ef-border: rgba(255, 255, 255, 0.22);
    --ef-border-focus: rgba(255, 255, 255, 0.65);

    --ef-chip-bg: rgba(255, 255, 255, 0.08);
    --ef-chip-border: rgba(255, 255, 255, 0.22);
    --ef-chip-text: #eef1f4;

    --ef-accent: #eef1f4;
    --ef-accent-text: #1a2431;

    --ef-drop-bg: #f4f4f4;
    --ef-drop-border: rgba(255, 255, 255, 0.35);
    --ef-drop-text: #6b6b6b;

    --ef-radius: 8px;

    max-width: var(--ef-max);
    margin: 0 auto;
    width: 100%;
    color: var(--ef-text);
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
}

.euromoda-form *,
.euromoda-form *::before,
.euromoda-form *::after {
    box-sizing: border-box;
}

/* CF7 envuelve cada campo en un span inline -> forzar bloque = full width */
.euromoda-form .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}

/* ---------- Layout ---------- */
.ef-row {
    display: grid;
    gap: var(--ef-gap);
}

.ef-row--2 {
    grid-template-columns: 1fr 1fr;
}

.ef-field label,
.ef-label {
    display: block !important;
    color: var(--ef-label);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

/* ---------- Inputs / select / textarea ---------- */
.euromoda-form input[type="text"],
.euromoda-form input[type="email"],
.euromoda-form input[type="tel"],
.euromoda-form select,
.euromoda-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    background: var(--ef-field-bg);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    padding: 16px 24px;
    font: inherit;
    color: var(--ef-text);
    min-height: 64px;
    transition: border-color .15s ease;
}

.euromoda-form textarea {
    min-height: 160px;
    resize: vertical;
}

.euromoda-form input::placeholder,
.euromoda-form textarea::placeholder {
    color: var(--ef-muted);
}

.euromoda-form input:focus,
.euromoda-form select:focus,
.euromoda-form textarea:focus {
    outline: none;
    border-color: var(--ef-border-focus);
}

.euromoda-form select {
    appearance: none;
    color: var(--ef-text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393a1b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    padding-right: 56px;
    cursor: pointer;
}

.euromoda-form select option {
    color: #1a2431;
}

/* ---------- Chips (departamento) ---------- */
/* ---------- Chips (departamento) ---------- */
.ef-chips .wpcf7-checkbox,
.ef-chips .wpcf7-radio {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
}

.ef-chips .wpcf7-list-item {
    margin: 0 !important;
    position: relative;
    display: inline-flex;
}

/* la pastilla es el <label> (requiere use_label_element en el tag CF7) */
.ef-chips .wpcf7-list-item>label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    margin: 0;
    background: var(--ef-chip-bg);
    border: 1px solid var(--ef-chip-border);
    border-radius: 40px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    user-select: none;
}

.ef-chips .wpcf7-list-item>label:hover {
    border-color: var(--ef-accent);
}

/* el theme (Aixor) inyecta su propio marcador: fuera dentro de las pastillas */
.ef-terms .checkbox-marker {
    display: none !important;
}

/* ocultar SOLO el input nativo (no el texto) */
.ef-chips .wpcf7-list-item input[type="checkbox"],
.ef-chips .wpcf7-list-item input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

/* forzar el texto visible (el theme puede ocultarlo) */
.ef-chips .wpcf7-list-item-label {
    display: inline !important;
    visibility: visible !important;
    color: var(--ef-chip-text) !important;
    font-size: 16px !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    white-space: nowrap;
}

.ef-chips .wpcf7-list-item:has(input:checked)>label {
    background: var(--ef-accent);
    border-color: var(--ef-accent);
}

.ef-chips .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label {
    color: var(--ef-accent-text) !important;
}

/* ---------- Range (salario) ---------- */
.ef-range {
    padding: 12px 0;
}

.euromoda-form input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    height: 8px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    min-height: 0;
    padding: 0;
    border: none;
}

.euromoda-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ef-accent);
    cursor: pointer;
    border: none;
}

.euromoda-form input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ef-accent);
    cursor: pointer;
    border: none;
}

.ef-range-value {
    display: block;
    margin-top: 8px;
    color: var(--ef-label);
    font-weight: 600;
}

/* ---------- Terminos (acceptance + checkbox largo) ---------- */
.ef-terms .ef-terms-title {
    color: var(--ef-label);
    font-weight: 600;
    margin: 0 0 16px;
}

.ef-terms .wpcf7-list-item {
    display: block !important;
    margin: 0 0 16px !important;
}

.ef-terms .wpcf7-list-item>label {
    display: flex !important;
    gap: 16px;
    align-items: flex-start;
    color: var(--ef-text);
    cursor: pointer;
}

.ef-terms .wpcf7-list-item input {
    margin-top: 4px;
    flex: 0 0 auto;
}

/* forzar visible el texto largo del checkbox */
.ef-terms .wpcf7-list-item-label {
    display: inline !important;
    visibility: visible !important;
    color: var(--ef-text) !important;
    font-size: 16px !important;
    white-space: normal !important;
}

.ef-terms a {
    color: var(--ef-accent);
    text-decoration: underline;
}

/* ---------- Dropzone (CV) — full width ---------- */
.ef-dropzone {
    display: flex !important;
    width: 100% !important;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 2px dashed var(--ef-drop-border);
    border-radius: var(--ef-radius);
    background: var(--ef-drop-bg);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
    position: relative;
}

.ef-dropzone.is-dragover {
    border-color: var(--ef-accent);
    background: #ededed;
}

.ef-dropzone-text {
    color: var(--ef-drop-text);
    font-size: 16px;
    pointer-events: none;
}

.ef-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ---------- Submit — full width ---------- */
.ef-submit {
    margin-top: 8px;
}

.euromoda-form .wpcf7-submit {
    display: block;
    width: 100% !important;
    background: var(--ef-accent);
    color: var(--ef-accent-text);
    border: none;
    border-radius: 40px;
    padding: 24px 48px;
    font: inherit;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: opacity .15s ease;
}

.euromoda-form .wpcf7-submit:hover {
    opacity: .85;
}

/* CF7 anade un spinner tras el submit: que no rompa el ancho */
.euromoda-form .wpcf7-spinner {
    display: block;
    margin: 16px auto 0;
}

/* ---------- CF7 errores ---------- */
.euromoda-form .wpcf7-not-valid-tip {
    font-size: 14px;
    margin-top: 8px;
}

.euromoda-form .wpcf7-not-valid {
    border-color: #ff8a8a !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .ef-row--2 {
        grid-template-columns: 1fr;
    }
}