/**
 * Buscador con Filtros for Creative Elements — front styles
 *
 * Todo el aspecto sale de variables CSS con valores por defecto en .zdfs y en
 * cada diseño (.zdfs--hero, …). Los controles de estilo del widget las
 * redefinen en "{{WRAPPER}} .zdfs", que tiene más especificidad y gana.
 *
 * @author    Z Digital
 * @copyright 2026 Z Digital
 */

/* ==========================================================================
 * Variables por defecto
 * ========================================================================== */
.zdfs {
    --zdfs-accent: #0a58d0;
    --zdfs-bar1: var(--zdfs-accent);
    --zdfs-bar2: #a8c62a;
    --zdfs-bar3: #f5b400;
    --zdfs-bar-w: 52px;
    --zdfs-img-w: 60%;
    --zdfs-fade: 35%;
    --zdfs-bg: #121417;
    --zdfs-bg2: #2b3038;
    --zdfs-ov: #000;
    --zdfs-ov-o: .72;
    --zdfs-eyebrow: var(--zdfs-accent);
    --zdfs-title: #fff;
    --zdfs-text: rgba(255, 255, 255, .88);
    --zdfs-h: 0px;
    --zdfs-box: 1320px;
    --zdfs-iw: 640px;
    --zdfs-pos: center center;
    --zdfs-pos-m: center center;
    --zdfs-overlap: 80px;

    --zdfs-panel-bg: #fff;
    --zdfs-panel-bd: transparent;
    --zdfs-panel-r: 12px;
    --zdfs-panel-p: 24px;
    --zdfs-panel-w: 360px;
    --zdfs-blur: 0px;
    --zdfs-ptitle: #15171a;
    --zdfs-psub: #5b6168;

    --zdfs-fh: 52px;
    --zdfs-gap: 12px;
    --zdfs-fr: 8px;
    --zdfs-f-bg: #fff;
    --zdfs-f-c: #23262a;
    --zdfs-f-bd: #d8dbe0;
    --zdfs-f-focus: var(--zdfs-accent);
    --zdfs-f-dis: #ececed;
    --zdfs-f-arrow: currentColor;
    --zdfs-label: #4a4f55;

    --zdfs-b-bg: var(--zdfs-accent);
    --zdfs-b-c: #fff;
    --zdfs-b-bd: transparent;
    --zdfs-b-bw: 0px;
    --zdfs-b-px: 26px;
    --zdfs-b-minw: 0px;
    --zdfs-b-ico: 18px;

    --zdfs-feat-ico: #fff;
    --zdfs-feat: #fff;
    --zdfs-pop-label: rgba(255, 255, 255, .85);
    --zdfs-chip-bg: rgba(0, 0, 0, .35);
    --zdfs-chip-c: #fff;
    --zdfs-chip-bd: rgba(255, 255, 255, .28);
    --zdfs-chip-r: 4px;

    position: relative;
    width: 100%;
    font-family: inherit;
    line-height: 1.4;
}

.zdfs,
.zdfs *,
.zdfs *::before,
.zdfs *::after {
    box-sizing: border-box;
}

.zdfs ul,
.zdfs li,
.zdfs p,
.zdfs h1,
.zdfs h2,
.zdfs h3 {
    margin: 0;
    padding: 0;
}

.zdfs ul {
    list-style: none;
}

/* ==========================================================================
 * Estructura común
 * ========================================================================== */
.zdfs-box {
    width: 100%;
    max-width: var(--zdfs-box);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.zdfs-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: var(--zdfs-h);
    overflow: hidden;
    isolation: isolate;
    color: var(--zdfs-text);
}

.zdfs--bg-image .zdfs-hero,
.zdfs--bg-color .zdfs-hero {
    background: var(--zdfs-bg);
}

.zdfs--bg-gradient .zdfs-hero {
    background: linear-gradient(135deg, var(--zdfs-bg) 0%, var(--zdfs-bg2) 100%);
}

.zdfs-media,
.zdfs-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.zdfs-media picture,
.zdfs-img {
    display: block;
    width: 100%;
    height: 100%;
}

.zdfs-img {
    object-fit: cover;
    object-position: var(--zdfs-pos);
    max-width: none;
}

/* Capa oscura: un color + una máscara según la forma elegida */
.zdfs-overlay {
    background: var(--zdfs-ov);
    opacity: var(--zdfs-ov-o);
}

.zdfs--ov-side .zdfs-overlay {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .75) 38%, rgba(0, 0, 0, .15) 70%, rgba(0, 0, 0, .45) 100%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .75) 38%, rgba(0, 0, 0, .15) 70%, rgba(0, 0, 0, .45) 100%);
}

.zdfs--ov-bottom .zdfs-overlay {
    -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .1) 100%);
    mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .1) 100%);
}

.zdfs--ov-none .zdfs-overlay {
    display: none;
}

/* en los diseños centrados, "desde el texto" = viñeta que oscurece el centro */
.zdfs--banner.zdfs--ov-side .zdfs-overlay,
.zdfs--capsule.zdfs--ov-side .zdfs-overlay {
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 0%, rgba(0, 0, 0, .7) 60%, rgba(0, 0, 0, .9) 100%);
    mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 0%, rgba(0, 0, 0, .7) 60%, rgba(0, 0, 0, .9) 100%);
}

.zdfs-hero-in {
    position: relative;
    flex: 1 0 auto;
    padding-top: 64px;
    padding-bottom: 64px;
}

/* ---------- textos del banner ---------- */
.zdfs-intro {
    max-width: var(--zdfs-iw);
    min-width: 0;
}

.zdfs-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--zdfs-eyebrow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.zdfs .zdfs-title {
    margin: 0 0 18px;
    color: var(--zdfs-title);
    font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.01em;
    text-transform: none;
}

.zdfs-accent {
    color: var(--zdfs-accent);
    font-style: normal;
}

.zdfs .zdfs-text {
    margin: 0;
    color: var(--zdfs-text);
    font-size: clamp(1rem, .9rem + .45vw, 1.25rem);
    line-height: 1.45;
}

.zdfs-hbtns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.zdfs .zdfs-hbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--zdfs-hb-r, 4px);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.zdfs .zdfs-hbtn--1 {
    background: var(--zdfs-h1-bg, var(--zdfs-accent));
    color: var(--zdfs-h1-c, #fff);
}

.zdfs .zdfs-hbtn--2 {
    background: transparent;
    border-color: var(--zdfs-h2-bd, rgba(255, 255, 255, .85));
    color: var(--zdfs-h2-c, #fff);
}

.zdfs .zdfs-hbtn:hover,
.zdfs .zdfs-hbtn:focus-visible {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 100vmax rgba(255, 255, 255, .1), 0 10px 22px -12px rgba(0, 0, 0, .6);
    text-decoration: none;
}

.zdfs .zdfs-hbtn--1:hover {
    color: var(--zdfs-h1-c, #fff);
}

.zdfs .zdfs-hbtn--2:hover {
    color: var(--zdfs-h2-c, #fff);
}

.zdfs .zdfs-feats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 36px;
    margin-top: 40px;
}

.zdfs-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--zdfs-feat);
}

.zdfs-feat-ico {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: var(--zdfs-feat-ico);
}

.zdfs-feat-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.zdfs-feat-txt strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
}

.zdfs-feat-txt span {
    font-size: 12px;
    letter-spacing: .04em;
    opacity: .85;
}

/* ---------- barras decorativas ---------- */
.zdfs-bars {
    display: flex;
    gap: 10px;
    margin: 4px 0 22px;
}

.zdfs .zdfs-bar {
    display: block;
    width: var(--zdfs-bar-w);
    height: 6px;
    border-radius: 6px;
    background: var(--zdfs-bar1);
}

.zdfs .zdfs-bar--2 {
    background: var(--zdfs-bar2);
}

.zdfs .zdfs-bar--3 {
    background: var(--zdfs-bar3);
}

.zdfs--banner .zdfs-bars,
.zdfs--capsule .zdfs-bars,
.zdfs--align-center .zdfs-bars {
    justify-content: center;
}

.zdfs--align-left .zdfs-bars {
    justify-content: flex-start;
}

.zdfs--align-right .zdfs-bars {
    justify-content: flex-end;
}

/* imagen propia en destacados */
.zdfs .zdfs-feat-img {
    object-fit: contain;
}

/* ==========================================================================
 * Buscador
 * ========================================================================== */
.zdfs-panel {
    position: relative;
    min-width: 0;
}

.zdfs-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--zdfs-gap);
    margin: 0;
    padding: var(--zdfs-panel-p);
    background: var(--zdfs-panel-bg);
    border: 1px solid var(--zdfs-panel-bd);
    border-radius: var(--zdfs-panel-r);
    -webkit-backdrop-filter: blur(var(--zdfs-blur));
    backdrop-filter: blur(var(--zdfs-blur));
}

.zdfs--shadow .zdfs-form {
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .08);
}

.zdfs-phead {
    min-width: 0;
}

.zdfs .zdfs-ptitle {
    margin: 0;
    color: var(--zdfs-ptitle);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.2;
    text-transform: uppercase;
}

.zdfs .zdfs-psub {
    margin: 10px 0 0;
    color: var(--zdfs-psub);
    font-size: 13px;
}

.zdfs-fields {
    display: grid;
    grid-template-columns: repeat(var(--zdfs-cols, var(--zdfs-n)), minmax(0, 1fr));
    gap: var(--zdfs-gap);
    min-width: 0;
}

.zdfs--form-column .zdfs-fields {
    grid-template-columns: repeat(var(--zdfs-cols, 1), minmax(0, 1fr));
}

.zdfs-field {
    position: relative;
    min-width: 0;
}

/* etiqueta: visible solo si se activa (siempre accesible para lectores) */
.zdfs-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* el tema suele alinear/flotar los <label> de formularios: aquí manda el widget */
.zdfs--labels .zdfs-label {
    position: static;
    display: block;
    float: none;
    width: auto;
    max-width: none;
    height: auto;
    overflow: visible;
    clip: auto;
    padding: 0;
    text-align: var(--zdfs-label-align, left) !important;
    margin: 0 0 6px;
    color: var(--zdfs-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: normal;
}

.zdfs-selwrap {
    position: relative;
    display: block;
    color: var(--zdfs-f-c);
}

.zdfs-selwrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1.6px solid var(--zdfs-f-arrow);
    border-bottom: 1.6px solid var(--zdfs-f-arrow);
    transform: rotate(45deg);
    pointer-events: none;
    transition: opacity .2s ease;
}

.zdfs .zdfs-select,
.zdfs .zdfs-input {
    display: block;
    width: 100%;
    max-width: none;
    height: var(--zdfs-fh);
    margin: 0;
    padding: 0 44px 0 16px;
    background: var(--zdfs-f-bg);
    color: var(--zdfs-f-c);
    border: 1px solid var(--zdfs-f-bd);
    border-radius: var(--zdfs-fr);
    box-shadow: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.zdfs .zdfs-input {
    padding-right: 16px;
    cursor: text;
}

.zdfs .zdfs-input::placeholder {
    color: var(--zdfs-f-c);
    opacity: .65;
}

.zdfs .zdfs-select::-ms-expand {
    display: none;
}

.zdfs .zdfs-select option {
    background: #fff;
    color: #23262a;
}

.zdfs .zdfs-select:focus,
.zdfs .zdfs-input:focus {
    border-color: var(--zdfs-f-focus);
    box-shadow: 0 0 0 1px var(--zdfs-f-focus);
}

.zdfs .is-filled .zdfs-select,
.zdfs .is-filled .zdfs-input {
    border-color: var(--zdfs-f-focus);
    font-weight: 600;
}

.zdfs .zdfs-select:disabled {
    background: var(--zdfs-f-dis);
    cursor: not-allowed;
    opacity: .8;
}

/* cargando */
.zdfs-spin {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.is-loading .zdfs-spin {
    opacity: .75;
    animation: zdfs-spin .7s linear infinite;
}

.is-loading .zdfs-selwrap::after {
    opacity: 0;
}

@keyframes zdfs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* falta un campo obligatorio */
.zdfs .is-error .zdfs-select,
.zdfs .is-error .zdfs-input {
    border-color: #d93025;
    box-shadow: 0 0 0 1px #d93025;
}

.zdfs .is-error {
    animation: zdfs-shake .38s ease;
}

@keyframes zdfs-shake {
    20%, 60% {
        transform: translateX(-5px);
    }
    40%, 80% {
        transform: translateX(5px);
    }
}

/* ---------- botón ---------- */
.zdfs .zdfs-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: var(--zdfs-b-minw);
    min-height: var(--zdfs-bh, var(--zdfs-fh));
    margin: 0;
    padding: 8px var(--zdfs-b-px);
    background: var(--zdfs-b-bg);
    color: var(--zdfs-b-c);
    border: var(--zdfs-b-bw) solid var(--zdfs-b-bd);
    border-radius: var(--zdfs-b-r, var(--zdfs-fr));
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease, opacity .2s ease;
}

.zdfs-submit-ico {
    flex: 0 0 auto;
    width: var(--zdfs-b-ico);
    height: var(--zdfs-b-ico);
}

.zdfs .zdfs-submit:hover,
.zdfs .zdfs-submit:focus-visible {
    background: var(--zdfs-b-bg-h, var(--zdfs-b-bg));
    color: var(--zdfs-b-c-h, var(--zdfs-b-c));
    border-color: var(--zdfs-b-bd-h, var(--zdfs-b-bd));
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .09);
    outline: none;
}

.zdfs .zdfs-submit:focus-visible {
    outline: 2px solid var(--zdfs-f-focus);
    outline-offset: 2px;
}

.zdfs--fx-none .zdfs-submit:hover {
    box-shadow: none;
}

.zdfs--fx-lift .zdfs-submit:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .09), 0 12px 24px -10px rgba(0, 0, 0, .45);
}

.zdfs--fx-lift .zdfs-submit:hover .zdfs-submit-ico {
    transform: translateX(3px);
}

.zdfs-submit-ico {
    transition: transform .25s ease;
}

.zdfs--fx-shine .zdfs-submit::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80%;
    width: 50%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.zdfs--fx-shine .zdfs-submit:hover::before {
    left: 130%;
    transition: left .7s ease;
}

.zdfs.is-empty .zdfs-submit {
    opacity: .72;
}

.zdfs.is-going .zdfs-submit {
    cursor: progress;
    opacity: .8;
}

.zdfs--form-column .zdfs-submit {
    width: 100%;
    white-space: normal;
}

.zdfs--btn-icon-only .zdfs-submit {
    width: var(--zdfs-bh, var(--zdfs-fh));
    min-width: 0;
    padding: 0;
}

/* ---------- limpiar y mensaje ---------- */
.zdfs .zdfs-reset {
    align-self: flex-start;
    margin: -4px 0 0;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font-family: inherit;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: .7;
    cursor: pointer;
}

.zdfs-form .zdfs-reset {
    color: var(--zdfs-psub);
}

.zdfs--form-row .zdfs-reset {
    text-align: left;
}

.zdfs--banner .zdfs-reset {
    align-self: center;
    text-align: center;
}

.zdfs .zdfs-reset:hover {
    opacity: 1;
}

.zdfs .zdfs-reset[hidden],
.zdfs .zdfs-msg[hidden] {
    display: none;
}

.zdfs .zdfs-msg {
    font-size: 12px;
    color: var(--zdfs-psub);
    word-break: break-all;
}

.zdfs .zdfs-note.zdfs-note--field {
    margin-top: 6px;
    padding: 6px 8px;
    border-color: #e0a100;
    background: #fff8e1;
    color: #6b5200;
    font-size: 12px;
    text-align: left;
}

.zdfs .zdfs-note {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px dashed #bbb;
    border-radius: 6px;
    color: #777;
    font-size: 13px;
    text-align: center;
}

/* ---------- texto de ayuda ---------- */
.zdfs .zdfs-help {
    margin: 0;
    color: var(--zdfs-help, var(--zdfs-psub));
    font-size: 14px;
    line-height: 1.4;
}

.zdfs .zdfs-help-link {
    color: var(--zdfs-help-link, var(--zdfs-accent));
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zdfs .zdfs-help-link:hover,
.zdfs .zdfs-help-link:focus-visible {
    color: var(--zdfs-help-link, var(--zdfs-accent));
    text-decoration-thickness: 2px;
}

.zdfs--banner .zdfs-help {
    text-align: center;
}

/* ---------- fila (campos + botón a la derecha) ---------- */
.zdfs--form-row .zdfs-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
}

.zdfs--form-row .zdfs-phead {
    flex: 0 1 260px;
    align-self: center;
}

.zdfs--form-row .zdfs-fields {
    flex: 1 1 360px;
}

.zdfs--form-row .zdfs-submit {
    flex: 0 0 auto;
}

.zdfs--form-row .zdfs-reset,
.zdfs--form-row .zdfs-help,
.zdfs--form-row .zdfs-msg {
    flex: 0 0 100%;
}

/* ---------- accesos rápidos ---------- */
.zdfs-pop-wrap {
    position: relative;
    padding-top: 0;
    padding-bottom: 22px;
}

.zdfs-after + .zdfs-pop-wrap {
    padding-top: 16px;
}

.zdfs-pop {
    display: flex;
    align-items: center;
    gap: 10px 16px;
    min-width: 0;
}

.zdfs-pop-label {
    flex: 0 0 auto;
    color: var(--zdfs-pop-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.zdfs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.zdfs .zdfs-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 16px;
    background: var(--zdfs-chip-bg);
    border: 1px solid var(--zdfs-chip-bd);
    border-radius: var(--zdfs-chip-r);
    color: var(--zdfs-chip-c);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.zdfs .zdfs-chip:hover,
.zdfs .zdfs-chip:focus-visible {
    border-color: var(--zdfs-accent);
    color: var(--zdfs-chip-c);
    text-decoration: none;
    box-shadow: inset 0 0 0 100vmax rgba(255, 255, 255, .06);
}

/* ==========================================================================
 * 0 · DIVIDIDO: texto + imagen fundida + tarjeta montada abajo
 * ========================================================================== */
.zdfs--split {
    --zdfs-h: 440px;
    --zdfs-bg: #e4eef9;
    --zdfs-title: #0d1f4f;
    --zdfs-text: #2c3a55;
    --zdfs-iw: 560px;
    --zdfs-overlap: 90px;
    --zdfs-bar1: #d6247f;
    --zdfs-bar2: #a8c62a;
    --zdfs-panel-r: 16px;
    --zdfs-panel-p: 30px;
    --zdfs-ptitle: #0d1f4f;
    --zdfs-psub: #4a5672;
    --zdfs-label: #0d1f4f;
    --zdfs-f-bd: #c9d0dc;
    --zdfs-help: #2c3a55;
    --zdfs-gap: 16px;
}

.zdfs--split .zdfs-media {
    left: auto;
    right: 0;
    width: var(--zdfs-img-w);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--zdfs-fade));
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--zdfs-fade));
}

.zdfs--split .zdfs-overlay {
    display: none;
}

.zdfs--split .zdfs-hero-in {
    display: flex;
    align-items: center;
    padding-bottom: calc(var(--zdfs-overlap) + 48px);
}

.zdfs--split .zdfs-intro {
    max-width: min(var(--zdfs-iw), calc(100% - var(--zdfs-img-w) + 18%));
}

.zdfs--split .zdfs-title {
    font-size: clamp(2rem, 1.1rem + 2.8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.06;
}

.zdfs--split .zdfs-ptitle {
    font-size: clamp(1.3rem, 1rem + .8vw, 1.75rem);
    text-transform: none;
}

.zdfs--split .zdfs-label {
    font-size: 15px;
}

.zdfs--split .zdfs-submit {
    text-transform: none;
    font-size: 16px;
    letter-spacing: 0;
}

.zdfs--split.zdfs--form-row .zdfs-phead {
    flex: 0 0 100%;
}

.zdfs--split .zdfs-hero + .zdfs-after .zdfs-panel {
    margin-top: calc(var(--zdfs-overlap) * -1);
}

.zdfs--split .zdfs-after {
    position: relative;
    z-index: 2;
    padding-bottom: 8px;
}

.zdfs--split.zdfs--shadow .zdfs-form {
    box-shadow: 0 22px 50px -26px rgba(13, 31, 79, .35), 0 2px 10px rgba(13, 31, 79, .06);
}

.zdfs--split.zdfs--align-center .zdfs-hero-in {
    justify-content: center;
}

.zdfs--split.zdfs--align-right .zdfs-hero-in {
    justify-content: flex-end;
}

/* ==========================================================================
 * 1 · HERO con tarjeta lateral
 * ========================================================================== */
.zdfs--hero {
    --zdfs-h: 560px;
    --zdfs-panel-bg: rgba(17, 19, 22, .92);
    --zdfs-panel-bd: rgba(255, 255, 255, .08);
    --zdfs-panel-r: 6px;
    --zdfs-ptitle: #fff;
    --zdfs-psub: rgba(255, 255, 255, .78);
    --zdfs-fh: 46px;
    --zdfs-gap: 10px;
    --zdfs-fr: 3px;
    --zdfs-f-bg: #1a1d21;
    --zdfs-f-c: #fff;
    --zdfs-f-bd: rgba(255, 255, 255, .2);
    --zdfs-f-dis: #16181b;
    --zdfs-label: rgba(255, 255, 255, .75);
    --zdfs-blur: 10px;
}

.zdfs--hero .zdfs-hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--zdfs-panel-w));
    align-items: center;
    gap: 48px;
}

.zdfs--hero .zdfs-panel {
    justify-self: end;
    width: 100%;
}

.zdfs--hero .zdfs-phead {
    margin-bottom: 6px;
}

.zdfs--hero .zdfs-submit {
    margin-top: 4px;
    min-height: calc(var(--zdfs-bh, var(--zdfs-fh)) + 8px);
}

.zdfs--hero .zdfs-pop-wrap {
    margin-top: -18px;
}

/* ==========================================================================
 * 2 · BANNER: fondo + título + barra
 * ========================================================================== */
.zdfs--banner {
    --zdfs-h: 400px;
    --zdfs-panel-p: 24px;
    --zdfs-panel-r: 10px;
    --zdfs-iw: 900px;
}

.zdfs--banner .zdfs-hero-in,
.zdfs--capsule .zdfs-hero-in {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    text-align: center;
}

.zdfs--banner .zdfs-intro,
.zdfs--capsule .zdfs-intro {
    margin-left: auto;
    margin-right: auto;
}

.zdfs--banner .zdfs-title,
.zdfs--capsule .zdfs-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.zdfs--banner .zdfs-hbtns,
.zdfs--capsule .zdfs-hbtns,
.zdfs--banner .zdfs-feats,
.zdfs--capsule .zdfs-feats {
    justify-content: center;
}

.zdfs--banner .zdfs-panel,
.zdfs--capsule .zdfs-panel {
    width: 100%;
}

.zdfs--banner .zdfs-pop,
.zdfs--capsule .zdfs-pop {
    justify-content: center;
}

/* ==========================================================================
 * 3 · PESTAÑA + barra superpuesta
 * ========================================================================== */
.zdfs--tab {
    --zdfs-h: 240px;
    --zdfs-panel-p: 28px;
    --zdfs-panel-r: 12px;
    --zdfs-pop-label: #4a4f55;
    --zdfs-chip-bg: #fff;
    --zdfs-chip-c: #23262a;
    --zdfs-chip-bd: #d8dbe0;
}

.zdfs--tab .zdfs-hero-in {
    display: flex;
    align-items: center;
    padding-bottom: calc(var(--zdfs-overlap) + 40px);
}

.zdfs--tab .zdfs-hero + .zdfs-after .zdfs-panel {
    margin-top: calc(var(--zdfs-overlap) * -1);
}

.zdfs--tab .zdfs-after {
    position: relative;
    z-index: 2;
}

.zdfs-tab {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 26px;
    background: var(--zdfs-tab-bg, #0d0e10);
    color: var(--zdfs-tab-c, #fff);
    border-radius: var(--zdfs-panel-r) var(--zdfs-panel-r) 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.zdfs-tab-ico {
    width: 22px;
    height: 22px;
}

.zdfs--tab .zdfs-tab + .zdfs-form {
    border-top-left-radius: 0;
}

/* ==========================================================================
 * 4 · CÁPSULA de vidrio
 * ========================================================================== */
.zdfs--capsule {
    --zdfs-h: 460px;
    --zdfs-iw: 820px;
    --zdfs-panel-bg: rgba(255, 255, 255, .14);
    --zdfs-panel-bd: rgba(255, 255, 255, .3);
    --zdfs-panel-r: 999px;
    --zdfs-panel-p: 8px;
    --zdfs-blur: 16px;
    --zdfs-fh: 30px;
    --zdfs-gap: 0px;
    --zdfs-f-bg: transparent;
    --zdfs-f-c: #fff;
    --zdfs-f-bd: transparent;
    --zdfs-f-dis: transparent;
    --zdfs-f-focus: transparent;
    --zdfs-label: rgba(255, 255, 255, .7);
    --zdfs-bh: 60px;
    --zdfs-b-r: 999px;
    --zdfs-psub: rgba(255, 255, 255, .8);
    --zdfs-ov-o: .6;
}

.zdfs--capsule .zdfs-form {
    max-width: 980px;
    margin: 0 auto;
    align-items: center;
    padding-left: 18px;
}

.zdfs--capsule .zdfs-label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    margin: 0 0 2px;
    color: var(--zdfs-label);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.zdfs--capsule .zdfs-field {
    padding: 6px 18px;
    border-radius: 999px;
    transition: background-color .2s ease;
}

.zdfs--capsule .zdfs-field + .zdfs-field::before {
    content: "";
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, .28);
}

.zdfs--capsule .zdfs-field:hover,
.zdfs--capsule .zdfs-field:focus-within {
    background: rgba(255, 255, 255, .1);
}

.zdfs--capsule .zdfs-select,
.zdfs--capsule .zdfs-input {
    padding-left: 0;
    padding-right: 26px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
}

.zdfs--capsule .zdfs-selwrap::after {
    right: 4px;
}

.zdfs--capsule .zdfs-spin {
    right: 2px;
}

.zdfs--capsule .zdfs-select:disabled {
    opacity: .55;
}

.zdfs--capsule .zdfs-input::placeholder {
    opacity: .75;
}

.zdfs--capsule .zdfs-help {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 14px;
    color: var(--zdfs-help, rgba(255, 255, 255, .85));
    text-align: center;
}

.zdfs--capsule .zdfs-help-link {
    color: var(--zdfs-help-link, #fff);
}

.zdfs--capsule .zdfs-form .zdfs-reset {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 44px;
    transform: translateX(-50%);
    color: #fff;
}

.zdfs--capsule .zdfs-msg {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 70px;
    color: #fff;
    text-align: center;
}

.zdfs--capsule.zdfs--btn-icon-only .zdfs-submit {
    border-radius: 50%;
}

/* ==========================================================================
 * 5 · COMPACTO (solo buscador)
 * ========================================================================== */
.zdfs--compact {
    --zdfs-panel-bd: #e3e6ea;
    --zdfs-panel-p: 20px;
    --zdfs-fh: 48px;
    --zdfs-pop-label: #4a4f55;
    --zdfs-chip-bg: #f4f5f7;
    --zdfs-chip-c: #23262a;
    --zdfs-chip-bd: #e3e6ea;
}

.zdfs--compact .zdfs-after {
    padding-left: 0;
    padding-right: 0;
}

.zdfs--compact.zdfs--shadow .zdfs-form {
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35);
}

.zdfs--compact .zdfs-ptitle {
    font-size: 17px;
}

.zdfs--compact .zdfs-psub {
    margin-top: 4px;
}

.zdfs--compact .zdfs-pop-wrap {
    padding-left: 0;
    padding-right: 0;
}

/* ==========================================================================
 * Sin fondo: textos oscuros (los controles de color siguen mandando)
 * ========================================================================== */
.zdfs--bg-none {
    --zdfs-title: #15171a;
    --zdfs-text: #4a4f55;
    --zdfs-feat: #23262a;
    --zdfs-feat-ico: var(--zdfs-accent);
    --zdfs-pop-label: #4a4f55;
    --zdfs-chip-bg: #fff;
    --zdfs-chip-c: #23262a;
    --zdfs-chip-bd: #d8dbe0;
    --zdfs-h2-bd: #23262a;
    --zdfs-h2-c: #23262a;
}

.zdfs--bg-none .zdfs-hero-in {
    padding-top: 32px;
    padding-bottom: 32px;
}

.zdfs--bg-none.zdfs--tab .zdfs-hero-in {
    padding-bottom: calc(var(--zdfs-overlap) + 16px);
}

.zdfs--bg-none.zdfs--capsule {
    --zdfs-panel-bg: #fff;
    --zdfs-panel-bd: #e3e6ea;
    --zdfs-f-c: #23262a;
    --zdfs-label: #6b7178;
}

.zdfs--bg-none.zdfs--capsule .zdfs-field + .zdfs-field::before {
    background: #e3e6ea;
}

.zdfs--bg-none.zdfs--capsule .zdfs-field:hover,
.zdfs--bg-none.zdfs--capsule .zdfs-field:focus-within {
    background: #f4f5f7;
}

.zdfs--bg-none.zdfs--capsule .zdfs-form .zdfs-reset {
    color: #4a4f55;
}

.zdfs--bg-none.zdfs--hero {
    --zdfs-h: 0px;
}

/* ==========================================================================
 * Alineación forzada del texto
 * ========================================================================== */
.zdfs--align-left .zdfs-intro {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.zdfs--align-center .zdfs-intro {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.zdfs--align-right .zdfs-intro {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.zdfs--align-center .zdfs-hbtns,
.zdfs--align-center .zdfs-feats {
    justify-content: center;
}

.zdfs--align-left .zdfs-hbtns,
.zdfs--align-left .zdfs-feats {
    justify-content: flex-start;
}

.zdfs--align-right .zdfs-hbtns,
.zdfs--align-right .zdfs-feats {
    justify-content: flex-end;
}

.zdfs--tab.zdfs--align-center .zdfs-hero-in {
    justify-content: center;
}

.zdfs--tab.zdfs--align-right .zdfs-hero-in {
    justify-content: flex-end;
}

.zdfs--banner.zdfs--align-left .zdfs-hero-in,
.zdfs--capsule.zdfs--align-left .zdfs-hero-in {
    align-items: flex-start;
    text-align: left;
}

.zdfs--banner.zdfs--align-right .zdfs-hero-in,
.zdfs--capsule.zdfs--align-right .zdfs-hero-in {
    align-items: flex-end;
    text-align: right;
}

/* ==========================================================================
 * Entrada suave
 * ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .zdfs-intro {
        animation: zdfs-up .7s cubic-bezier(.2, .7, .2, 1) both;
    }

    .zdfs-panel {
        animation: zdfs-up .7s .12s cubic-bezier(.2, .7, .2, 1) both;
    }

    .zdfs--editor .zdfs-intro,
    .zdfs--editor .zdfs-panel {
        animation: none;
    }
}

@keyframes zdfs-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zdfs *,
    .zdfs *::before {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
 * Tablet (≤ 1024 px)
 * ========================================================================== */
@media (max-width: 1024px) {
    .zdfs-hero-in {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .zdfs--hero .zdfs-hero-in {
        grid-template-columns: minmax(0, 1fr) minmax(0, min(var(--zdfs-panel-w), 340px));
        gap: 32px;
    }

    .zdfs--hero .zdfs-feats {
        gap: 14px 24px;
    }

    .zdfs--split {
        --zdfs-img-w: 52%;
        --zdfs-overlap: 70px;
    }

    .zdfs--form-row .zdfs-fields {
        grid-template-columns: repeat(var(--zdfs-cols-t, var(--zdfs-n2)), minmax(0, 1fr));
    }

    .zdfs--form-column .zdfs-fields {
        grid-template-columns: repeat(var(--zdfs-cols-t, 1), minmax(0, 1fr));
    }

    .zdfs--form-row .zdfs-form {
        flex-direction: column;
        align-items: stretch;
    }

    .zdfs--form-row .zdfs-phead,
    .zdfs--form-row .zdfs-fields,
    .zdfs--form-row .zdfs-submit {
        flex: 0 0 auto;
    }

    .zdfs--form-row .zdfs-phead {
        align-self: stretch;
    }

    .zdfs--form-row .zdfs-submit {
        width: 100%;
    }

    /* la cápsula pasa a tarjeta redondeada */
    .zdfs--capsule {
        --zdfs-panel-r: 22px;
        --zdfs-panel-p: 10px;
    }

    .zdfs--capsule .zdfs-form {
        padding-left: 10px;
    }

    .zdfs--capsule .zdfs-field {
        border-radius: 14px;
    }

    .zdfs--capsule .zdfs-field + .zdfs-field::before {
        display: none;
    }

    .zdfs--capsule .zdfs-fields {
        gap: 4px;
    }

    .zdfs--capsule.zdfs--btn-icon-only .zdfs-submit {
        width: 100%;
        border-radius: 14px;
    }

    .zdfs--capsule .zdfs-submit {
        --zdfs-b-r: 14px;
        min-height: 52px;
    }

    .zdfs--capsule .zdfs-form .zdfs-reset,
    .zdfs--capsule .zdfs-help,
    .zdfs--capsule .zdfs-msg {
        position: static;
        margin: 4px auto 0;
        transform: none;
    }
}

/* ==========================================================================
 * Móvil (≤ 767 px)
 * ========================================================================== */
@media (max-width: 767px) {
    .zdfs-box {
        padding-left: 16px;
        padding-right: 16px;
    }

    .zdfs-img {
        object-position: var(--zdfs-pos-m);
    }

    /* en móvil el alto lo da el contenido (salvo que se fije uno para móvil) */
    .zdfs {
        --zdfs-h: 0px;
    }

    .zdfs-hero-in {
        padding-top: 40px;
        padding-bottom: 36px;
    }

    .zdfs--hero .zdfs-hero-in {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .zdfs--hero .zdfs-panel {
        justify-self: stretch;
    }

    .zdfs--hero .zdfs-pop-wrap {
        margin-top: 0;
    }

    .zdfs--ov-side .zdfs-overlay {
        -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, .35) 100%);
        mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, .35) 100%);
    }

    .zdfs .zdfs-title {
        margin-bottom: 12px;
    }

    .zdfs-hbtns {
        gap: 10px;
        margin-top: 22px;
    }

    .zdfs .zdfs-hbtn {
        flex: 1 1 auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    .zdfs .zdfs-feats {
        gap: 14px 20px;
        margin-top: 26px;
    }

    .zdfs-feat-ico {
        width: 26px;
        height: 26px;
    }

    .zdfs-feat-txt strong {
        font-size: 13px;
    }

    .zdfs-feat-txt span {
        font-size: 11px;
    }

    .zdfs--form-row .zdfs-fields,
    .zdfs--form-column .zdfs-fields {
        grid-template-columns: repeat(var(--zdfs-cols-m, 1), minmax(0, 1fr));
    }

    .zdfs-form {
        padding: min(var(--zdfs-panel-p), 18px);
    }

    .zdfs--capsule .zdfs-form {
        padding: 8px;
    }

    .zdfs .zdfs-submit {
        white-space: normal;
    }

    .zdfs--btn-full-m .zdfs-submit {
        width: 100%;
    }

    .zdfs--tab {
        --zdfs-overlap: 40px;
    }

    /* Dividido: imagen arriba fundida hacia abajo, texto debajo */
    .zdfs--split {
        --zdfs-img-w: 100%;
        --zdfs-overlap: 32px;
    }

    .zdfs--split .zdfs-media {
        position: relative;
        inset: auto;
        z-index: 0;
        width: 100%;
        height: var(--zdfs-img-h-m, 230px);
        -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 35%);
        mask-image: linear-gradient(0deg, transparent 0, #000 35%);
    }

    .zdfs--split .zdfs-hero-in {
        padding-top: 0;
        margin-top: -24px;
        padding-bottom: calc(var(--zdfs-overlap) + 28px);
    }

    .zdfs--split .zdfs-intro {
        max-width: var(--zdfs-iw);
    }

    .zdfs--split .zdfs-bars {
        margin-bottom: 16px;
    }

    .zdfs-tab {
        padding: 12px 18px;
        font-size: 13px;
    }

    .zdfs--banner .zdfs-hero-in,
    .zdfs--capsule .zdfs-hero-in {
        gap: 26px;
    }

    /* accesos: etiqueta arriba y fila deslizable */
    .zdfs-pop {
        flex-direction: column;
        align-items: flex-start;
    }

    .zdfs--banner .zdfs-pop,
    .zdfs--capsule .zdfs-pop {
        align-items: center;
    }

    .zdfs--pop-scroll .zdfs-pop {
        align-items: stretch;
    }

    .zdfs--pop-scroll .zdfs-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        scroll-padding-left: 16px;
        scroll-padding-right: 16px;
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px 2px;
    }

    .zdfs--pop-scroll .zdfs-chips::-webkit-scrollbar {
        display: none;
    }

    .zdfs--pop-scroll .zdfs-chips li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}
