/* Ofimatica.cu V8.3 - Consentimiento */

.ofi-consent[hidden],
.ofi-consent [hidden] {
    display: none !important;
}

.ofi-consent {
    box-sizing: border-box;
    position: fixed;
    z-index: 10000;
    left: 24px;
    bottom: 24px;
    right: auto;
    width: 440px;
    max-width: calc(100vw - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    margin: 0;
    padding: 24px;
    background: #ffffff;
    color: #102d33;
    border: 1px solid #c7dcda;
    border-top: 4px solid #00867e;
    border-radius: 18px;
    box-shadow:
        0 18px 48px rgba(16,45,51,.16),
        0 3px 10px rgba(16,45,51,.06);
    font: 14px/1.6 system-ui, sans-serif;
    text-align: left;
    animation: ofi-consent-enter .3s ease-out;
}

.ofi-consent-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ofi-consent-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #e5f3f0;
    color: #00736e;
}

.ofi-consent h2 {
    margin: 0;
    padding: 0;
    color: #102d33;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.ofi-consent-subtitle {
    display: block;
    margin-top: 3px;
    color: #526d73;
    font-size: 12px;
}

.ofi-consent .ofi-consent-description {
    margin: 17px 0 19px;
    color: #425a60;
    font-size: 14px;
    line-height: 1.65;
}

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

.ofi-actions button {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid #00736e;
    border-radius: 9px;
    background: #00736e;
    color: #ffffff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: background .18s ease,
                box-shadow .18s ease;
}

.ofi-actions button[data-choice="no"] {
    background: #ffffff;
    color: #00665f;
}

.ofi-actions button[data-choice="yes"]:hover {
    background: #005e59;
}

.ofi-actions button[data-choice="no"]:hover {
    background: #e5f3f0;
}

.ofi-consent-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 17px;
    font-size: 11.5px;
    color: #526d73;
}

.ofi-consent-links a {
    color: #526d73;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ofi-consent-links a:hover {
    color: #00665f;
}

.ofi-actions button:focus-visible,
.ofi-consent a:focus-visible,
.ofi-legal button:focus-visible {
    outline: 3px solid #f6ab48;
    outline-offset: 3px;
}

.ofi-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
}

.ofi-legal a {
    color: inherit;
    text-decoration: underline;
}

.ofi-legal button {
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #00736e;
    border-radius: 6px;
    padding: 9px 12px;
    background: #ffffff;
    color: #005b56;
}

@keyframes ofi-consent-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .ofi-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: auto;
        max-width: 440px;
        margin: 0 auto;
        padding: 20px;
        border-radius: 16px;
    }

    .ofi-consent h2 {
        font-size: 18px;
    }

    .ofi-consent-description {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ofi-consent {
        animation: none;
    }

    .ofi-actions button {
        transition: none;
    }
}
