/* =========================================================
   Mascotaventura /agua/ — Cookies y contenido externo v13
   ========================================================= */

.cookie-settings-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-settings-link:hover {
    opacity: .82;
}

.video-consent-placeholder {
    min-height: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px;
    text-align: center;
    background: linear-gradient(180deg, #f5fbff 0%, #f8fafc 100%);
    color: #334155;
    border-radius: inherit;
}

.video-consent-placeholder p {
    max-width: 340px;
    margin: 0;
    line-height: 1.6;
}

.video-consent-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #8F664A, #B9825A);
    color: #fff;
    font-size: 1.4rem;
}

.video-consent-button {
    border: 0;
    border-radius: 11px;
    padding: 12px 18px;
    background: #8F664A;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.video-consent-button:hover {
    background: #7A523A;
}

.video-consent-config-link {
    border: 0;
    background: transparent;
    padding: 2px 4px;
    color: #5b6472;
    text-decoration: underline;
    font: inherit;
    font-size: .92rem;
    cursor: pointer;
}

.hero-video-inner iframe[data-cookie-category="external"]:not([src]) {
    display: none !important;
}

.hero-video-inner iframe[data-cookie-category="external"][src] {
    display: block !important;
}

.video-consent-placeholder[hidden],
[data-external-placeholder][hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99990;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
    display: none;
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.cookie-banner h2,
.cookie-modal h2 {
    margin: 0 0 7px;
    color: #172033;
    font-size: 1.16rem;
}

.cookie-banner p,
.cookie-modal p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
    font-size: .9rem;
}

.cookie-banner a {
    color: #7A523A;
}

.cookie-actions,
.cookie-modal__actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.cookie-btn {
    min-height: 42px;
    border: 1px solid #d6dde8;
    border-radius: 10px;
    padding: 9px 14px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-btn--primary {
    background: #8F664A;
    color: #fff;
    border-color: #8F664A;
}

.cookie-btn--secondary {
    background: #f8fafc;
}

.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .58);
}

.cookie-modal-backdrop.is-visible {
    display: flex;
}

.cookie-modal {
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(15, 23, 42, .3);
}

.cookie-category {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
}

.cookie-category strong {
    display: block;
    margin-bottom: 4px;
    color: #172033;
}

.cookie-category small {
    display: block;
    color: #64748b;
    line-height: 1.5;
}

.cookie-switch input {
    width: 22px;
    height: 22px;
    accent-color: #8F664A;
}

.cookie-modal__actions {
    justify-content: flex-end;
    margin-top: 20px;
}

@media (max-width: 700px) {
    .video-consent-placeholder {
        min-height: 360px;
        padding: 22px;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 16px;
    }

    .cookie-banner__grid {
        grid-template-columns: 1fr;
    }

    .cookie-actions,
    .cookie-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-btn {
        width: 100%;
    }
}


/* =========================================================
   V14 - Popup equivalente al principal
   ========================================================= */
.cookie-modal__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cookie-modal__actions .cookie-btn {
    width: 100%;
}

.cookie-modal__note {
    margin-top: 18px !important;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    color: #64748b !important;
    font-size: .78rem !important;
    line-height: 1.55 !important;
}

@media (max-width: 700px) {
    .cookie-modal__actions {
        grid-template-columns: 1fr;
    }
}
