/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #4a2c82;
    --orb1: rgba(102, 126, 234, .45);
    --orb1-mid: rgba(118, 75, 162, .3);
    --orb2: rgba(200, 120, 200, .5);
    --orb2-mid: rgba(160, 80, 180, .3);
    --text: #f1f0f3;
    --text-muted: rgba(255, 255, 255, .6);
    color-scheme: dark;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

/* ── Accesibilidad ───────────────────────────────────────── */

/* Outline visible solo con teclado, no con click de ratón */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid #7df9ff;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Skip link — visible al tabular, oculto en el resto */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    padding: .6rem 1rem;
    background: #1a0a2e;
    color: #7df9ff;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(125, 249, 255, .4);
    border-radius: 0 0 .5rem 0;
    transform: translateY(-110%);
    transition: transform .2s;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Texto solo para lectores de pantalla */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 5rem;
}

/* ── Orbes animadas ──────────────────────────────────────── */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

body::before {
    width: 60vmax;
    height: 60vmax;
    top: -20%;
    left: -15%;
    background: radial-gradient(circle, var(--orb1) 0%, var(--orb1-mid) 35%, transparent 65%);
    animation: orbMove1 12s ease-in-out infinite alternate;
}

body::after {
    width: 50vmax;
    height: 50vmax;
    bottom: -25%;
    right: -10%;
    background: radial-gradient(circle, var(--orb2) 0%, var(--orb2-mid) 30%, transparent 65%);
    animation: orbMove2 10s ease-in-out infinite alternate;
}

@keyframes orbMove1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

@keyframes orbMove2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-12%, -10%) scale(1.15); }
}

/* ── Layout principal ────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.hero__logo {
    max-width: min(70vw, 420px);
    height: auto;
}

.hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: .02em;
    min-height: 1.6em;
}

.tagline__fixed {
    margin-right: .1em;
}

.tagline__generic {
    margin-left: .25em;
    font-weight: 400;
}

.tagline__rotating {
    color: #fff;
    font-weight: 600;
    transition: opacity .15s ease-out;
    will-change: opacity;
}

.tagline__rotating.is-switching {
    opacity: 0;
}

.tagline__rotating.neon {
    color: #7df9ff;
    text-shadow:
        0 0  7px rgba(125, 249, 255, .7),
        0 0 20px rgba(125, 249, 255, .5),
        0 0 42px rgba(125, 249, 255, .3),
        0 0 80px rgba(102, 126, 234, .25);
}

.tagline__cursor {
    font-weight: 300;
    color: var(--text);
    animation: blink .6s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1;
    padding: 1rem;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer p {
    margin: 0;
}

.footer__links {
    line-height: 1.5;
}

.footer p.footer__rights {
    margin-top: 1.2rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    text-underline-offset: 2px;
    transition: color .2s, text-decoration-color .2s;
}

.footer a:hover {
    color: var(--text);
    text-decoration: underline;
}

.footer a:focus-visible {
    color: var(--text);
    text-decoration: underline;
}

/* ── Social links (top bar, left of lang selector) ───── */
.lang-sel__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    color: var(--text-muted);
    transition: color .2s, transform .2s;
}

.lang-sel__social:hover {
    color: #0a66c2;
    transform: scale(1.1);
}

.lang-sel__divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .18);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Contenedor de FABs — desktop: esquina inferior derecha */
.footer__actions {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: .75rem;
}

@media (max-width: 600px) {
    .footer {
        font-size: .65rem;
        padding: .5rem 1rem .8rem;
        text-align: center;
    }
    .footer__links {
        line-height: 1.8;
    }
    /* En mobile los FABs fluyen dentro del footer */
    .footer__actions {
        position: static;
        justify-content: center;
        margin-bottom: .75rem;
    }
    .kc-fab,
    .kc-fab--contact {
        position: static;
    }
}

/* ── Kore Chat ─────────────────────────────────────────── */

/* FAB (botón flotante) — chat */
.kc-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #7df9ff 0%, #a855f7 50%, #f472b6 100%);
    color: #1a0a2e;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(125, 249, 255, .35),
        0 0 30px rgba(125, 249, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s, opacity .3s;
    animation: fabPulse 3s ease-in-out infinite;
}

/* FAB contacto */
.kc-fab--contact {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f472b6 0%, #a855f7 50%, #7df9ff 100%);
    box-shadow:
        0 4px 16px rgba(244, 114, 182, .35),
        0 0 24px rgba(168, 85, 247, .15);
    animation: fabPulseContact 3s ease-in-out infinite;
}

.kc-fab:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 30px rgba(125, 249, 255, .5),
        0 0 40px rgba(168, 85, 247, .3);
}
.kc-fab--contact:hover {
    box-shadow:
        0 6px 24px rgba(244, 114, 182, .5),
        0 0 32px rgba(168, 85, 247, .3);
}
.kc-fab--hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(.5);
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(125, 249, 255, .35), 0 0 30px rgba(125, 249, 255, .15); }
    50% { box-shadow: 0 4px 25px rgba(168, 85, 247, .45), 0 0 40px rgba(244, 114, 182, .2); }
}
@keyframes fabPulseContact {
    0%, 100% { box-shadow: 0 4px 16px rgba(244, 114, 182, .35), 0 0 24px rgba(168, 85, 247, .15); }
    50% { box-shadow: 0 4px 20px rgba(168, 85, 247, .45), 0 0 32px rgba(125, 249, 255, .2); }
}

/* Panel del chat */
.kc-panel {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    width: min(380px, calc(100vw - 2rem));
    max-height: min(520px, calc(100vh - 3rem));
    background: rgba(26, 10, 46, .95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(125, 249, 255, .2);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, .5),
        0 0 50px rgba(125, 249, 255, .08),
        inset 0 1px 0 rgba(125, 249, 255, .1);
    opacity: 0;
    transform: translateY(20px) scale(.95);
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.kc-panel.kc-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.kc-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: linear-gradient(135deg, rgba(125, 249, 255, .1) 0%, rgba(168, 85, 247, .1) 100%);
    border-bottom: 1px solid rgba(125, 249, 255, .15);
}
.kc-avatar {
    font-size: 1.3rem;
    line-height: 1;
}
.kc-title {
    flex: 1;
    font-weight: 600;
    font-size: .95rem;
    color: #7df9ff;
    letter-spacing: .03em;
}
.kc-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .5);
    font-size: 1.4rem;
    cursor: pointer;
    padding: .25rem;
    line-height: 1;
    transition: color .2s;
}
.kc-close:hover { color: #f472b6; }

/* Mensajes */
.kc-messages {
    flex: 1;
    overflow-y: auto;
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-height: 200px;
    max-height: 340px;
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 249, 255, .2) transparent;
}
.kc-messages::-webkit-scrollbar { width: 5px; }
.kc-messages::-webkit-scrollbar-track { background: transparent; }
.kc-messages::-webkit-scrollbar-thumb { background: rgba(125, 249, 255, .2); border-radius: 3px; }

.kc-msg { display: flex; }
.kc-msg--kore { justify-content: flex-start; }
.kc-msg--user { justify-content: flex-end; }

.kc-bubble {
    max-width: 85%;
    padding: .55rem .8rem;
    border-radius: .75rem;
    font-size: .85rem;
    line-height: 1.45;
    word-break: break-word;
}
.kc-msg--kore .kc-bubble {
    background: rgba(125, 249, 255, .08);
    border: 1px solid rgba(125, 249, 255, .15);
    color: var(--text);
    border-bottom-left-radius: .2rem;
}
.kc-msg--user .kc-bubble {
    background: linear-gradient(135deg, rgba(168, 85, 247, .25), rgba(244, 114, 182, .2));
    border: 1px solid rgba(168, 85, 247, .25);
    color: var(--text);
    border-bottom-right-radius: .2rem;
}

.kc-bullet { color: #7df9ff; margin-right: .3em; }

/* Typing indicator */
.kc-typing .kc-bubble {
    display: flex;
    gap: .3rem;
    padding: .7rem 1rem;
}
.kc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7df9ff;
    animation: kcBounce .6s ease-in-out infinite;
}
.kc-dot:nth-child(2) { animation-delay: .15s; }
.kc-dot:nth-child(3) { animation-delay: .3s; }
@keyframes kcBounce {
    0%, 80%, 100% { transform: scale(.6); opacity: .4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input */
.kc-input-wrap {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem .75rem;
    border-top: 1px solid rgba(125, 249, 255, .12);
    background: rgba(26, 10, 46, .6);
}
.kc-input-wrap.kc-disabled { opacity: .5; pointer-events: none; }

.kc-input {
    flex: 1;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(125, 249, 255, .15);
    border-radius: .5rem;
    padding: .45rem .65rem;
    color: var(--text);
    font-size: .85rem;
    outline: none;
    transition: border-color .2s;
}
.kc-input::placeholder { color: rgba(255, 255, 255, .3); }
.kc-input:focus { border-color: rgba(125, 249, 255, .4); }

.kc-send {
    background: none;
    border: none;
    color: #7df9ff;
    cursor: pointer;
    padding: .35rem;
    display: flex;
    align-items: center;
    transition: color .2s, transform .15s;
}
.kc-send:hover { color: #a855f7; transform: scale(1.1); }
.kc-send:disabled { opacity: .3; cursor: default; }

/* ── Lead Form (inline en chat) ────────────────────────── */
.kc-lead-form {
    background: rgba(125, 249, 255, .06);
    border: 1px solid rgba(125, 249, 255, .2);
    border-radius: .75rem;
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    max-width: 95%;
}
.kc-lead-title {
    font-size: .85rem;
    font-weight: 600;
    color: #7df9ff;
    margin: 0 0 .15rem;
}
.kc-lead-input {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(125, 249, 255, .18);
    border-radius: .4rem;
    padding: .4rem .6rem;
    color: var(--text);
    font-size: .8rem;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.kc-lead-input::placeholder { color: rgba(255, 255, 255, .35); }
.kc-lead-input:focus { border-color: rgba(125, 249, 255, .45); }

.kc-lead-consent {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    font-size: .7rem;
    color: rgba(255, 255, 255, .55);
    cursor: pointer;
    line-height: 1.35;
}
.kc-lead-consent input[type="checkbox"] {
    margin-top: .15rem;
    accent-color: #a855f7;
    flex-shrink: 0;
}
.kc-lead-consent a {
    color: #7df9ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.kc-lead-consent a:hover { color: #f472b6; }

.kc-lead-submit {
    background: linear-gradient(135deg, rgba(125, 249, 255, .15), rgba(168, 85, 247, .2));
    border: 1px solid rgba(125, 249, 255, .25);
    border-radius: .4rem;
    color: #7df9ff;
    font-size: .8rem;
    font-weight: 600;
    padding: .45rem;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .1s;
    font-family: inherit;
}
.kc-lead-submit:hover {
    background: linear-gradient(135deg, rgba(125, 249, 255, .25), rgba(168, 85, 247, .3));
    border-color: rgba(125, 249, 255, .4);
}
.kc-lead-submit:active { transform: scale(.97); }
.kc-lead-submit:disabled { opacity: .5; cursor: wait; }

.kc-lead-note {
    font-size: .65rem;
    color: rgba(255, 255, 255, .4);
    text-align: center;
    margin: 0;
}
.kc-lead-error {
    font-size: .72rem;
    color: #f472b6;
    margin: 0;
    padding: .15rem 0;
}
.kc-lead-success {
    font-size: .82rem;
    color: #7df9ff;
    text-align: center;
    padding: .5rem 0;
    margin: 0;
}

/* ── Language Selector ────────────────────────────────────── */
.lang-sel {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.lang-sel__btn {
    width: auto;
    padding: 5px 8px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    transition: border-color .15s, background .15s;
    font-family: inherit;
}
.lang-sel__btn:hover {
    background: rgba(255, 255, 255, .1);
}
.lang-sel__label {
    white-space: nowrap;
}
.lang-sel__chevron {
    transition: transform .2s;
    color: rgba(255, 255, 255, .5);
    flex-shrink: 0;
}
.lang-sel--open .lang-sel__chevron {
    transform: rotate(180deg);
}
.lang-sel__dd {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: rgba(45, 20, 80, .92);
    backdrop-filter: blur(40px) saturate(1.6);
    -webkit-backdrop-filter: blur(40px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(255, 255, 255, .12) inset;
    min-width: 160px;
    max-height: 260px;
    overflow-y: auto;
}
.lang-sel--open .lang-sel__dd {
    display: block;
}
.lang-sel__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s;
    text-align: left;
    font-family: inherit;
}
.lang-sel__opt:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.lang-sel__opt--on {
    color: #fff;
    font-weight: 600;
}
.lang-sel__opt--on svg {
    color: #a78bfa;
}
.lang-sel__check-gap {
    display: inline-block;
    width: 14px;
    flex-shrink: 0;
}

/* ── Accesibilidad: respeta prefers-reduced-motion ───────── */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
    .tagline__cursor {
        animation: none;
    }
    .tagline__rotating.neon {
        text-shadow: none;
    }
    .kc-fab {
        animation: none;
    }
    .kc-fab--contact {
        animation: none;
    }
    .kc-dot {
        animation: none;
    }
    .kv-fab {
        animation: none;
    }
}

/* ── Kore Call (Voice Agent) ────────────────────────────── */

/* FAB teléfono — a la izquierda del FAB contacto */
.kv-fab {
    position: fixed;
    bottom: 1.5rem;
    right: calc(1.5rem + 56px + .75rem + 48px + .75rem);
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #34d399 0%, #06b6d4 50%, #7df9ff 100%);
    color: #1a0a2e;
    cursor: pointer;
    box-shadow:
        0 4px 16px rgba(52, 211, 153, .35),
        0 0 24px rgba(6, 182, 212, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s, opacity .3s;
    animation: fabPulse 3s ease-in-out infinite;
}

.kv-fab:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 24px rgba(52, 211, 153, .5),
        0 0 40px rgba(6, 182, 212, .25);
}

.kv-fab--active {
    transform: scale(.9);
    opacity: .7;
}

@media (max-width: 600px) {
    .kv-fab {
        bottom: calc(8rem + 4px);
        right: calc(1.5rem + 56px + .75rem + 48px + .75rem);
        width: 42px;
        height: 42px;
    }
}

/* ── Modal ─────────────────────────────────────────────── */
.kv-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.kv-modal--open {
    opacity: 1;
    visibility: visible;
}

.kv-modal__card {
    background: linear-gradient(145deg, #2a1452 0%, #1a0a2e 100%);
    border: 1px solid rgba(125, 249, 255, .15);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    max-width: 380px;
    width: 90vw;
    position: relative;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, .5),
        0 0 30px rgba(125, 249, 255, .08);
}

.kv-modal__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
}

.kv-modal__close:hover {
    color: var(--text);
}

.kv-modal__icon {
    color: #34d399;
    margin-bottom: .75rem;
}

.kv-modal__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--text);
}

.kv-modal__desc {
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.kv-modal__input {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid rgba(125, 249, 255, .2);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    text-align: center;
    letter-spacing: .05em;
}

.kv-modal__input:focus {
    border-color: rgba(52, 211, 153, .5);
    box-shadow: 0 0 12px rgba(52, 211, 153, .15);
}

.kv-modal__input::placeholder {
    color: rgba(255, 255, 255, .3);
}

.kv-modal__consent {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: 1rem 0;
    font-size: .75rem;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
}

.kv-modal__consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #34d399;
}

.kv-modal__consent a {
    color: #7df9ff;
    text-decoration: none;
}

.kv-modal__consent a:hover {
    text-decoration: underline;
}

.kv-modal__btn {
    width: 100%;
    padding: .8rem;
    border: none;
    border-radius: .75rem;
    background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%);
    color: #1a0a2e;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .2s;
    box-shadow: 0 4px 16px rgba(52, 211, 153, .3);
}

.kv-modal__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, .45);
}

.kv-modal__btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.kv-modal__status {
    margin-top: .75rem;
    font-size: .8rem;
    min-height: 1.2em;
    transition: color .2s;
}

.kv-modal__status--error {
    color: #f87171;
}

.kv-modal__status--info {
    color: #7df9ff;
}

.kv-modal__status--success {
    color: #34d399;
}

/* ── Cookie Consent Banner ───────────────────────────────── */
.ey-cb {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26, 10, 46, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(125, 249, 255, .2);
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem 1.5rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, .5);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .35s ease, transform .35s ease;
}

.ey-cb--visible {
    opacity: 1;
    transform: translateY(0);
}

.ey-cb--closing {
    opacity: 0;
    transform: translateY(100%);
}

.ey-cb__text {
    flex: 1 1 300px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1.5;
    margin: 0;
}

.ey-cb__link {
    color: #7df9ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ey-cb__link:hover {
    color: #f472b6;
}

.ey-cb__btns {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.ey-cb__btn {
    border: none;
    border-radius: .5rem;
    padding: .5rem 1.1rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    white-space: nowrap;
}

.ey-cb__btn:hover {
    transform: scale(1.04);
}

/* Aceptar y rechazar: mismo formato, tamaño y contraste (Guía AEPD). */
.ey-cb__btn--equal {
    background: rgba(255, 255, 255, .92);
    color: #1a0a2e;
    border: 1px solid rgba(255, 255, 255, .92);
}

.ey-cb__btn--equal:hover {
    background: #fff;
    box-shadow: 0 4px 18px rgba(255, 255, 255, .25);
}

/* Tercer mecanismo: configuración, visible pero no necesariamente similar. */
.ey-cb__btn--ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
}

.ey-cb__btn--ghost:hover {
    background: rgba(255, 255, 255, .16);
}

/* ── Panel de configuración de cookies (2ª capa) ─────────── */
.ey-cpm {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(10, 4, 20, .72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .25s ease;
    overflow-y: auto;
}

.ey-cpm--visible {
    opacity: 1;
}

.ey-cpm__card {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    background: #1a0a2e;
    border: 1px solid rgba(125, 249, 255, .2);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    outline: none;
}

.ey-cpm__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ey-cpm__title {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.ey-cpm__close {
    border: none;
    background: none;
    color: rgba(255, 255, 255, .7);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .25rem;
}

.ey-cpm__close:hover {
    color: #fff;
}

.ey-cpm__intro {
    margin: .75rem 0 1rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.5;
}

.ey-cpm__body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.ey-cpm__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .75rem;
}

.ey-cpm__row-main {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.ey-cpm__row-title {
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
}

.ey-cpm__row-desc {
    font-size: .75rem;
    color: rgba(255, 255, 255, .55);
    line-height: 1.4;
}

.ey-cpm__always {
    font-size: .72rem;
    color: #7df9ff;
    white-space: nowrap;
}

.ey-cpm__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1.25rem;
}

.ey-cpm__foot .ey-cb__btn {
    flex: 1 1 auto;
}

/* Interruptor */
.ey-cpm__switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.ey-cpm__switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ey-cpm__slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    transition: background .2s;
}

.ey-cpm__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}

.ey-cpm__switch input:checked + .ey-cpm__slider {
    background: #7df9ff;
}

.ey-cpm__switch input:checked + .ey-cpm__slider::before {
    transform: translateX(20px);
}

.ey-cpm__switch input:focus-visible + .ey-cpm__slider {
    outline: 2px solid #7df9ff;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .ey-cpm__foot .ey-cb__btn {
        flex: 1 1 100%;
    }
}

#ey-cookie-settings {
    cursor: pointer;
    text-decoration: none;
    font: inherit;
}

#ey-cookie-settings:hover {
    color: var(--text);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .ey-cb {
        flex-direction: column;
        padding: .8rem 1rem;
        gap: .5rem;
    }

    .ey-cb__btns {
        width: 100%;
        justify-content: stretch;
    }

    .ey-cb__btn {
        flex: 1;
        text-align: center;
    }
}
