.hystmodal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.hystmodal--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hystmodal__wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.hystmodal__window {
    position: relative;
    /* background: #fff; */
    border-radius: 4px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 1;
    cursor: default;
    flex-shrink: 0;
}

.hystmodal--active .hystmodal__window {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.hystmodal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-indent: -9999px;
    overflow: hidden;
}

.hystmodal__close:hover {
    background-color: #f0f0f0;
    transform: rotate(90deg);
}

.hystmodal__close::before,
.hystmodal__close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: #1F1801;
    border-radius: 1px;
}

.hystmodal__close::before {
    transform: rotate(45deg);
}

.hystmodal__close::after {
    transform: rotate(-45deg);
}

.hystmodal--simple .hystmodal__wrap {
    /* background: rgba(20, 15, 5, 0.7); */
    backdrop-filter: blur(5px) saturate(130%);
    -webkit-backdrop-filter: blur(5px) saturate(130%);
    cursor: pointer;
}

.hystmodal--simple .hystmodal__window {
    border-radius: 20px;
    max-width: 980px;
    /* background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.22)); */
    border: 1px solid rgba(245, 241, 232, 0.16);
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #F5F1E8;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.hystmodal--simple .hystmodal__close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: auto;
    height: auto;
    border-radius: 9999px;
    border: 1px solid rgba(245, 241, 232, 0.18);
    background: rgba(40, 34, 24, 0.55);
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-indent: 0;
    overflow: visible;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.15s ease;
    transform: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #F5F1E8;
    z-index: 10;
    line-height: 1.3;
}
.hystmodal--simple .hystmodal__close::before {
    content: 'Cerrar';
    width: auto;
    height: auto;
    background: transparent;
    transform: none;
    border-radius: 0;
    position: static;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
}
.hystmodal--simple .hystmodal__close::after {
    display: none;
}
.hystmodal--simple .hystmodal__close:hover {
    background: rgba(60, 52, 38, 0.85);
    border-color: rgba(245, 241, 232, 0.32);
    transform: translateY(-1px);
}
.hystmodal--simple .hystmodal__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(225, 176, 14, 0.55);
}

/* Scrollbar del modal (solo modo hystmodal--simple) */
.hystmodal--simple .hystmodal__window::-webkit-scrollbar {
    width: 10px;
}
.hystmodal--simple .hystmodal__window::-webkit-scrollbar-track {
    background: transparent;
    margin: 14px 0;
}
.hystmodal--simple .hystmodal__window::-webkit-scrollbar-thumb {
    background: rgba(245, 241, 232, 0.18);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.hystmodal--simple .hystmodal__window::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 241, 232, 0.30);
    background-clip: padding-box;
    border: 2px solid transparent;
}
.hystmodal--simple .hystmodal__window {
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 241, 232, 0.20) transparent;
}

/* Contenido especifico de Política de Privacidad en el modal */
.hystmodal--simple .privacy-modal-window {
    max-width: 760px;
    border-radius: 20px;
}

.hystmodal--simple .privacy-modal-content {
    padding: 28px 48px 42px;
    font-size: 0.9rem;
}

.hystmodal--simple .privacy-modal-content > h2 {
    display: none;
}

.hystmodal--simple .privacy-modal-content::before {
    content: 'INFORMACIÓN LEGAL';
    display: block;
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.62);
    font-family: 'open-sans', sans-serif;
    font-weight: 600;
}
.hystmodal--simple .privacy-modal-content > div.py-4 {
    padding: 18px 0 0;
}
.hystmodal--simple .privacy-modal-content > div.py-4::before {
    content: 'Política de protección de datos';
    display: block;
    font-family: 'stara-bold', 'Source Serif 4', Georgia, serif;
    font-weight: 700;
    color: #F5F1E8;
    font-size: 2.1rem;
    line-height: 1.1;
    margin: 8px 0 22px;
    padding: 0;
    border: none;
    text-transform: none;
}

/* Caja destacada — estilo tarjeta del screenshot */
.hystmodal--simple .destacado {
    background: rgba(0, 0, 0, 0.5);
    /* border: 1px solid rgba(245, 241, 232, 0.08); */
    border-radius: 22px;
    padding: 34px 40px;
    margin: 6px 0 30px;
    /* font-family: 'stara-book', 'Source Serif 4', Georgia, serif; */
    font-size: 1rem;
    line-height: 1.5;
    color: #F5F1E8;
    font-weight: 500;
    /* letter-spacing: -0.005em; */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fallback: si hay un primer p destacado y no hay .destacado */
.hystmodal--simple .privacy-modal-content > div.py-4 > p:first-of-type,
.hystmodal--simple .privacy-modal-content > div.py-4 > br:first-of-type + p {
    background: rgba(245, 241, 232, 0.08);
    border: 1px solid rgba(245, 241, 232, 0.10);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 28px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(245, 241, 232, 0.92);
}

/* Resto de títulos del texto (ej: "1. Cumplimiento...", "2. Datos...", etc.) — labels tipo sección */
.hystmodal--simple .privacy-modal-content > div.py-4 > br + strong,
.hystmodal--simple .privacy-modal-content > div.py-4 strong:only-child {
    display: block;
    margin-top: 26px;
    margin-bottom: 8px;
}
.hystmodal--simple .privacy-modal-content > div.py-4 strong {
    color: rgba(245, 241, 232, 0.55);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-family: 'open-sans', sans-serif;
    font-weight: 700;
    line-height: 1.4;
}

/* Texto general de párrafos en el modal */
.hystmodal--simple .privacy-modal-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(245, 241, 232, 0.82);
    margin: 0 0 14px;
}

.hystmodal--simple .privacy-modal-content strong:not(:only-child) {
    color: #F5F1E8;
    font-weight: 700;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: none;
    font-family: inherit;
    display: inline;
    margin: 0;
}

/* Listas internas (bullet de •) */
.hystmodal--simple .privacy-modal-content > div.py-4 > p + p,
.hystmodal--simple .privacy-modal-content > div.py-4 p {
    text-indent: 0;
}

@media (max-width: 768px) {
    .hystmodal--simple .privacy-modal-content {
        padding: 24px 22px 32px;
    }
    .hystmodal--simple .hystmodal__close {
        top: 16px;
        right: 16px;
        padding: 7px 15px;
        font-size: 0.8rem;
    }
    .hystmodal--simple .privacy-modal-content::before {
        margin-top: 18px;
        font-size: 10px;
        letter-spacing: 0.28em;
    }
    .hystmodal--simple .privacy-modal-content > div.py-4::before {
        font-size: 1.55rem;
        margin: 4px 0 18px;
    }
    .hystmodal--simple .destacado {
        padding: 22px 22px;
        font-size: 1.05rem;
        margin: 4px 0 22px;
        border-radius: 18px;
    }
    .hystmodal--simple .privacy-modal-content > div.py-4 > p:first-of-type,
    .hystmodal--simple .privacy-modal-content > div.py-4 > br:first-of-type + p {
        padding: 18px 18px;
        font-size: 0.95rem;
        margin-bottom: 22px;
    }
    .hystmodal--simple .privacy-modal-content p {
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    .hystmodal__wrap {
        padding: 20px 12px;
    }

    .hystmodal__window {
        max-height: calc(100vh - 40px);
    }

    .privacy-modal-content {
        padding: 50px 24px 30px;
    }

    .privacy-modal-content h2 {
        font-size: 1.35rem;
    }

    .privacy-modal-content p {
        font-size: 0.875rem;
    }

    .hystmodal__close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .hystmodal__close::before,
    .hystmodal__close::after {
        width: 16px;
    }
}



.hystmodal--simple h3 {
    font-size: 0.9rem;
    color: #999;
}