/* =====================================================
   MK SELECT - ESTILOS GENERALES
   ===================================================== */

/* Normalización de los componentes de cookies */
.mk-cookie-banner,
.mk-cookie-settings {
    box-sizing: border-box;
    color: #0f172a;
    font-family: inherit;
    z-index: 99999;
}

.mk-cookie-banner *,
.mk-cookie-settings * {
    box-sizing: border-box;
}

.mk-cookie-banner[hidden],
.mk-cookie-settings[hidden] {
    display: none !important;
}


/* =====================================================
   MÓDULO 1 - CONSENTIMIENTO DE COOKIES
   ===================================================== */

/* ---------- Base móvil: capa de fondo ---------- */

.mk-cookie-box {
    position: fixed;
    inset: 0;
    z-index: 100;
    width: 100%;
    background: #0f172abd;
}


/* ---------- Base móvil: aviso inicial ---------- */

.mk-cookie-banner {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    margin: 0;
    padding: 21px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .17);
}

.mk-cookie-heading h2 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

.mk-cookie-heading p {
    margin: 0 0 22px;
    color: #626262;
    font-size: 13px;
    line-height: 1.65;
}


/* ---------- Base móvil: botones ---------- */

.mk-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.mk-cookie-actions button,
.mk-cookie-settings-actions button {
    min-height: 46px;
    padding: 12px 15px;
    border: 1px solid #0f172a;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.mk-cookie-actions button:first-child,
.mk-cookie-settings-actions button:first-child {
    background: #0f172a;
    color: #fff;
}

.mk-cookie-actions button:last-child {
    grid-column: auto;
}

.mk-cookie-actions button:hover,
.mk-cookie-settings-actions button:hover {
    background: #0084D6;
    border-color: #0084D6;
}

.mk-cookie-actions button:focus-visible,
.mk-cookie-settings button:focus-visible,
.mk-cookie-banner button:focus-visible,
.mk-cookie-banner a:focus-visible {
    outline: 3px solid #777;
    outline-offset: 3px;
}


/* ---------- Base móvil: enlaces ---------- */

.mk-cookie-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 19px;
}

.mk-cookie-links a,
.mk-cookie-policy-link {
    color: #555;
    font-size: 12px;
    text-decoration: underline;
}


/* ---------- Base móvil: panel de configuración ---------- */

.mk-cookie-settings {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow-y: auto;
    background: rgba(0, 0, 0, .58);
}

.mk-cookie-settings-content {
    position: relative;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    padding: 24px 19px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}

.mk-cookie-settings-content h2 {
    margin: 0 35px 12px 0;
    font-size: 22px;
    font-weight: 700;
}

.mk-cookie-settings-content > p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}


/* ---------- Base móvil: botón cerrar ---------- */

.mk-cookie-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #333;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}


/* ---------- Base móvil: categorías ---------- */

.mk-cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 17px 0;
    border-top: 1px solid #e9e9e9;
    cursor: pointer;
}

.mk-cookie-category strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.mk-cookie-category p {
    margin: 5px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.mk-cookie-always {
    flex-shrink: 0;
    color: #555;
    font-size: 12px;
    font-weight: 600;
}

.mk-cookie-category input {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    accent-color: #0f172a;
    cursor: pointer;
}


/* ---------- Base móvil: botones y enlace de configuración ---------- */

.mk-cookie-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.mk-cookie-settings-actions button {
    flex: 1;
}

.mk-cookie-policy-link {
    display: inline-block;
    margin-top: 19px;
}


/* ---------- Desk: módulo de consentimiento ---------- */

@media (min-width: 601px) {

    .mk-cookie-banner {
        left: 0;
        right: 0;
        bottom: 25%;
        width: min(900px, calc(100% - 40px));
        margin: 0 auto;
        padding: 28px;
        border-radius: 12px;
    }

    .mk-cookie-heading h2 {
        font-size: 21px;
    }

    .mk-cookie-heading p {
        font-size: 14px;
    }

    .mk-cookie-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mk-cookie-actions button:last-child {
        grid-column: 1 / -1;
    }

    .mk-cookie-settings {
        padding: 20px;
    }

    .mk-cookie-settings-content {
        width: min(540px, 100%);
        max-height: 90vh;
        padding: 30px;
    }

    .mk-cookie-settings-actions {
        flex-direction: row;
    }

}


/* =====================================================
   MÓDULO 2 - PÁGINAS LEGALES
   ===================================================== */

/* ---------- Base móvil: estructura general ---------- */

.legal-page {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding: 50px 0 65px;
}

.legal-hero {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: left;
}

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #0084D6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.legal-hero h1 {
    margin: 0 0 20px;
    color: #0A192F;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
}

.legal-hero > p {
    max-width: 650px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.legal-hero-line {
    width: 65px;
    height: 4px;
    margin: 24px 0 0;
    background: #FFCC00;
    border-radius: 5px;
}


/* ---------- Base móvil: distribución y navegación ---------- */

.legal-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    align-items: start;
}

.legal-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 15px;
    padding: 20px 15px;
    background: #F8FAFC;
    border: 1px solid #E8EDF2;
    border-radius: 10px;
}

.legal-sidebar > span {
    grid-column: 1 / -1;
    margin-bottom: 15px;
    color: #0A192F;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.legal-sidebar a {
    padding: 11px 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #E9EEF3;
    transition: color .2s ease;
}

.legal-sidebar a:last-child {
    border-bottom: none;
}

.legal-sidebar a:hover {
    color: #0084D6;
}


/* ---------- Base móvil: contenido legal ---------- */

.legal-content {
    min-width: 0;
}

.legal-section {
    position: relative;
    padding: 0 0 28px;
    margin-bottom: 30px;
    border-bottom: 1px solid #E9EEF3;
    scroll-margin-top: 125px;
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section-number {
    display: block;
    margin-bottom: 12px;
    color: #0084D6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.legal-content h2 {
    margin: 0 0 20px;
    color: #0A192F;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.legal-content p {
    margin: 0 0 16px;
    color: #596579;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.9;
}

.legal-content strong {
    color: #0A192F;
    font-weight: 700;
}


/* ---------- Base móvil: datos del responsable ---------- */

.legal-info-panel {
    margin-top: 25px;
    padding: 20px;
    background: #F8FAFC;
    border-left: 3px solid #38B6FF;
    border-radius: 0 8px 8px 0;
}

.legal-info-panel p {
    margin-bottom: 12px;
}

.legal-info-panel p:last-child {
    margin-bottom: 0;
}


/* ---------- Base móvil: subsecciones y enlaces ---------- */

.legal-subsection {
    margin-top: 28px;
}

.legal-content h3 {
    margin: 0 0 10px;
    color: #0A192F;
    font-size: 15px;
    font-weight: 700;
}

.legal-external-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 5px;
    color: #0084D6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.legal-external-link:hover {
    color: #0A192F;
}

.legal-external-link i {
    font-size: 11px;
}


/* ---------- Base móvil: cierre de página ---------- */

.legal-final {
    padding-top: 15px;
}

.legal-final > p {
    color: #94A3B8;
    font-size: 12px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 22px;
    background: #0A192F;
    color: #FFFFFF !important;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.legal-back:hover {
    background: #0084D6;
    transform: translateY(-2px);
}


/* ---------- Tablet: módulo de páginas legales ---------- */

@media (min-width: 651px) {

    .legal-page {
        width: min(100% - 40px, 1200px);
        padding: 75px 0 100px;
    }

    .legal-hero {
        margin-bottom: 65px;
        text-align: center;
    }

    .legal-hero h1 {
        font-size: clamp(36px, 5vw, 54px);
    }

    .legal-hero > p {
        margin: 0 auto;
        font-size: 16px;
    }

    .legal-hero-line {
        margin: 30px auto 0;
    }

    .legal-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 35px;
    }

    .legal-sidebar {
        position: sticky;
        top: 125px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .legal-sidebar > span {
        grid-column: auto;
    }

    .legal-sidebar a {
        font-size: 12px;
    }

    .legal-content h2 {
        font-size: 25px;
    }

    .legal-content p {
        font-size: 14px;
    }

    .legal-section {
        padding-bottom: 38px;
        margin-bottom: 38px;
    }

}


/* ---------- Desk: módulo de páginas legales ---------- */

@media (min-width: 901px) {

    .legal-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 75px;
    }

    .legal-sidebar {
        padding: 25px 20px;
    }

}
