/* ======================================================
   Aviso de cookies (RGPD) + botones flotantes — compartido
   Usado por todas las páginas que cargan landing.css (la home
   ya tiene estas mismas reglas dentro de style.css).
   ====================================================== */

#cc-overlay,
#cc-modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    inset: 0;
    transition: 0.2s;
}
#cc-overlay {
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    pointer-events: none;
}
#cc-modal {
    display: grid;
    place-items: center;
    z-index: 9999;
    pointer-events: none;
}
.cc-open #cc-modal,
.cc-open #cc-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
body.cc-lock {
    overflow: hidden;
}

#cc-modal .cc-panel {
    background: #fff;
    color: #111;
    width: min(92vw, 640px);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: translateY(10px);
    transition: transform 0.2s;
}
.cc-open #cc-modal .cc-panel {
    transform: none;
}
#cc-modal .cc-hd,
#cc-modal .cc-ft {
    background: #f7f7f7;
    padding: 14px 16px;
}
#cc-modal .cc-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#cc-modal .cc-hd h2 {
    font-size: 20px;
    margin: 0;
    color: #004b87;
}
#cc-modal .cc-body {
    padding: 16px;
}
#cc-modal .cc-body p {
    margin: 0.4rem 0;
}
#cc-modal .cc-body .cc-cat {
    margin: 0.25rem 0 0.1rem;
    color: #222;
}
.cc-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #eee;
}
.cc-row:first-of-type {
    border-top: none;
}
.cc-col.cc-control {
    text-align: right;
}
#cc-modal .cc-ft {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.cc-btn-accent,
.cc-btn-ghost,
.cc-btn-primary {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}
.cc-btn-ghost {
    background: #fff;
    border: 1px solid #cfcfcf;
}
.cc-btn-primary {
    background: #004b87;
    color: #fff;
}
.cc-btn-accent {
    background: #f58220;
    color: #111;
}
.cc-btn-accent:hover {
    filter: brightness(0.95);
}
.cc-btn-accent:focus-visible,
.cc-btn-ghost:focus-visible,
.cc-btn-primary:focus-visible {
    outline: #004b87 solid 3px;
    outline-offset: 2px;
}
@media (max-width: 480px) {
    #cc-modal .cc-panel {
        width: 92vw;
    }
    #cc-modal .cc-ft {
        flex-direction: column;
    }
    #cc-modal .cc-ft button {
        width: 100%;
    }
}

/* Botones flotantes: WhatsApp y volver arriba */
.back-to-top,
.whatsappshortcut {
    position: fixed;
    right: 16px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.3s ease;
}
.back-to-top {
    bottom: 16px;
    z-index: 998;
    background: #036;
}
.back-to-top:hover {
    background: #0b5ea7;
}
.whatsappshortcut {
    bottom: 90px;
    z-index: 999;
    background: #25d366;
}
.whatsappshortcut:hover {
    background: #128c7e;
}
.back-to-top:hover,
.whatsappshortcut:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Enlaces legales del footer (aviso legal, privacidad, cookies) */
.footer-legal {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.85;
}
.footer-legal a {
    color: inherit;
    text-decoration: underline;
}

