/* Tenderete v1.8.9 · produccion */
/* Tenderete · Cookies. Mismos colores, fuentes y botones que la LP. */
:root {
    --cookie-banner-height: 0px;
}
.footer-cookie-link {
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.footer-cookie-link:hover {
    text-decoration: underline;
}
.cookie-notice[hidden],
.cookie-status[hidden],
.cookie-dialog [hidden] {
    display: none !important;
}
.cookie-notice {
    position: fixed;
    z-index: 80;
    right: 20px;
    bottom: 18px;
    left: 20px;
    margin-inline: auto;
    max-width: 1000px;
    padding: 13px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #ddd3ed;
    border-radius: 14px;
    box-shadow: 0 8px 28px #140b3024;
    color: var(--ink);
}
.cookie-notice h2 {
    font-size: 1.06rem;
    margin: 0 0 5px;
}
.cookie-notice p {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.35;
    margin: 0 0 4px;
}
.cookie-notice a {
    color: var(--purple);
    font-size: 0.78rem;
}
.cookie-notice-actions {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 7px;
    min-width: 0;
}
.cookie-notice .button {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.8rem;
    line-height: 1.2;
}
.cookie-notice-open {
    padding-bottom: var(--cookie-banner-height);
    background: var(--footer-background);
}
.cookie-notice-open main {
    background: #fff;
}
.cookie-notice-open .contact-dock {
    bottom: calc(var(--cookie-banner-height) + 18px);
}
.cookie-dialog {
    width: min(680px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 30px 100px #140b3050;
    overflow: hidden;
}
.cookie-dialog[open] {
    display: flex;
    flex-direction: column;
}
.cookie-dialog::backdrop {
    background: #140b30ae;
    backdrop-filter: blur(3px);
}
.cookie-dialog-header {
    flex-shrink: 0;
    padding: 24px 26px 15px;
    position: relative;
}
.cookie-dialog-header h2 {
    font-size: 1.65rem;
    margin: 0 32px 10px 0;
}
.cookie-dialog-header > p:last-child {
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--muted);
    margin: 0;
}
.cookie-kicker {
    color: var(--purple);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin: 0 35px 6px 0;
}
.cookie-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--lilac);
    color: var(--purple);
    cursor: pointer;
}
#tdrt-cookie-formulario {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
}
.cookie-dialog-scroll {
    overflow-y: auto;
    min-height: 0;
    padding: 0 26px 18px;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}
.cookie-category {
    border: 1px solid #e4dcef;
    background: #faf7ff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
}
.cookie-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 24px;
    margin-bottom: 8px;
}
.cookie-category-heading h3,
.cookie-category-heading label {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.cookie-category-heading label {
    cursor: pointer;
}
.cookie-category p {
    font-size: 0.87rem;
    line-height: 1.45;
    color: var(--muted);
    margin: 0;
}
.cookie-required-pill {
    flex-shrink: 0;
    background: #eee3ff;
    color: var(--purple-dark);
    border-radius: 30px;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 600;
}
.cookie-switch {
    appearance: none;
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 24px;
    margin: 0;
    border: 1px solid #8c83a0;
    border-radius: 999px;
    background: #d8d3e4;
    cursor: pointer;
}
.cookie-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px #140b3040;
    transition: transform 0.16s;
}
.cookie-switch:checked {
    background: var(--purple);
    border-color: var(--purple);
}
.cookie-switch:checked::before {
    transform: translateX(18px);
}
.cookie-inventory {
    margin: 15px 0;
    font-size: 0.84rem;
    line-height: 1.45;
}
.cookie-inventory summary {
    color: var(--purple-dark);
    cursor: pointer;
    font-weight: 600;
}
.cookie-inventory dl {
    margin: 12px 0;
}
.cookie-inventory dt {
    font-weight: 600;
    margin-top: 12px;
    overflow-wrap: anywhere;
}
.cookie-inventory dd {
    margin: 4px 0 0;
    color: var(--muted);
}
.cookie-more,
.cookie-reload-note {
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 10px 0 0;
}
.cookie-more a {
    color: var(--purple);
}
.cookie-dialog-footer {
    flex-shrink: 0;
    display: grid;
    gap: 9px;
    border-top: 1px solid var(--line);
    padding: 15px 26px 18px;
    background: #fff;
}
.cookie-dialog-footer .button {
    min-height: 43px;
    padding: 9px 12px;
    font-size: 0.88rem;
}
.cookie-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.cookie-dialog-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: center;
}
.cookie-status {
    position: fixed;
    z-index: 90;
    left: 50%;
    bottom: calc(var(--cookie-banner-height) + 120px);
    transform: translateX(-50%);
    max-width: min(600px, calc(100% - 32px));
    width: max-content;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.45;
    box-shadow: 0 4px 20px #140b3022;
}
@media (max-width: 900px) {
    .cookie-notice {
        grid-template-columns: 1fr;
        right: 10px;
        left: 10px;
        bottom: 10px;
        padding: 12px 14px;
        gap: 10px;
    }
    .cookie-notice-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
    }
    .cookie-notice .button {
        font-size: 0.76rem;
        padding-inline: 6px;
    }
    .cookie-notice h2 {
        font-size: 1rem;
    }
    .cookie-notice p {
        font-size: 0.8rem;
    }
    .cookie-notice-open .contact-dock {
        bottom: var(--cookie-banner-height);
    }
    .cookie-dialog-header {
        padding: 20px 18px 12px;
    }
    .cookie-dialog-header h2 {
        font-size: 1.4rem;
    }
    .cookie-dialog-scroll {
        padding-inline: 18px;
    }
    .cookie-dialog-footer {
        padding: 12px 18px;
    }
}
@media (max-height: 500px) {
    .cookie-dialog-header {
        padding: 10px 18px;
    }
    .cookie-dialog-header h2 {
        font-size: 1.25rem;
        margin-bottom: 5px;
    }
    .cookie-kicker {
        display: none;
    }
    .cookie-dialog-header > p:last-child {
        font-size: 0.8rem;
    }
    .cookie-dialog-footer {
        padding: 8px 18px;
        gap: 5px;
    }
    .cookie-dialog-footer .button {
        min-height: 36px;
        padding-block: 5px;
        font-size: 0.78rem;
    }
    .cookie-notice {
        padding: 12px 18px;
    }
}
@media print {
    .cookie-notice,
    .cookie-dialog,
    .cookie-status,
    .footer-cookie-link {
        display: none !important;
    }
}

@media (max-height: 500px) and (min-width: 501px) {
    .cookie-notice {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 10px 12px;
    }
    .cookie-notice-actions {
        max-width: 260px;
    }
    .cookie-notice .button {
        font-size: 0.72rem;
    }
    .cookie-notice h2 {
        font-size: 0.95rem;
    }
    .cookie-notice p {
        font-size: 0.76rem;
    }
}
