@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800&display=swap');


/* =========================================================
   ESCOLI
   COOKIES + WHATSAPP
   ========================================================= */


/* =========================================================
   BOTÓN PERMANENTE DE COOKIES
   ========================================================= */

.cookie-tab {

    position: fixed;

    right: 20px;
    bottom: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 9px 14px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    background: rgba(30, 30, 47, 0.96);

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    color: #ffffff;

    font-family: 'Roboto', Arial, sans-serif;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.20),
        0 0 0 1px rgba(106, 5, 114, 0.08);

    z-index: 9997;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

    appearance: none;
    -webkit-appearance: none;

}


.cookie-tab:hover {

    transform: translateY(-2px);

    background: rgba(48, 20, 63, 0.98);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.26),
        0 0 20px rgba(106, 5, 114, 0.18);

}


.cookie-tab:focus-visible {

    outline: 2px solid #F08E03;

    outline-offset: 3px;

}


.cookie-tab-logo {

    width: 22px;
    height: 22px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

}


.cookie-tab-text {

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.2px;

    line-height: 1;

}



/* =========================================================
   WHATSAPP FLOTANTE
   SOLO ÍCONO
   ========================================================= */

.whatsapp-float {

    position: fixed;

    right: 20px;
    bottom: 76px;

    width: 56px;
    height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: transparent;

    text-decoration: none;

    z-index: 9996;

    filter:
        drop-shadow(
            0 7px 13px rgba(0, 0, 0, 0.28)
        );

    transition:
        transform 0.25s ease,
        filter 0.25s ease;

}


.whatsapp-float:hover {

    transform:
        translateY(-3px)
        scale(1.06);

    filter:
        drop-shadow(
            0 10px 20px rgba(37, 211, 102, 0.38)
        );

}


.whatsapp-float:focus-visible {

    outline: 2px solid #F08E03;

    outline-offset: 4px;

}


.whatsapp-float-icon {

    display: block;

    width: 56px;
    height: 56px;

    object-fit: contain;

    pointer-events: none;

}



/* =========================================================
   OVERLAY DE COOKIES
   ========================================================= */

.cookie-overlay {

    position: fixed;

    inset: 0;

    background: rgba(12, 8, 20, 0.55);

    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);

    z-index: 9998;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

}


.cookie-overlay.is-open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}



/* =========================================================
   PANEL DE COOKIES
   ========================================================= */

.cookie-panel {

    position: fixed;

    left: 50%;
    bottom: 30px;

    width: min(
        680px,
        calc(100% - 40px)
    );

    transform:
        translate(-50%, 30px)
        scale(0.98);

    background:
        linear-gradient(
            145deg,
            rgba(30, 30, 47, 0.995),
            rgba(46, 20, 60, 0.995)
        );

    color: #ffffff;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.42),
        0 0 40px rgba(106, 5, 114, 0.12);

    z-index: 10000;

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    font-family: 'Roboto', Arial, sans-serif;

    transition:
        opacity 0.28s ease,
        transform 0.28s ease,
        visibility 0.28s ease;

}



/* Línea superior ESCOLI */

.cookie-panel::before {

    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #6A0572,
            #F74436,
            #F08E03
        );

}


.cookie-panel.is-open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translate(-50%, 0)
        scale(1);

}



/* =========================================================
   HEADER DEL PANEL
   ========================================================= */

.cookie-panel-header {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px 22px 4px;

}


.cookie-panel-logo {

    display: block;

    width: 64px;
    height: 64px;

    margin: 0;

    object-fit: contain;

}



/* =========================================================
   BOTÓN CERRAR
   ========================================================= */

.cookie-close {

    position: absolute;

    top: 15px;
    right: 17px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    color:
        rgba(255, 255, 255, 0.86);

    font-family: Arial, sans-serif;

    font-size: 25px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


.cookie-close:hover {

    background:
        rgba(255, 255, 255, 0.12);

    transform: scale(1.05);

}


.cookie-close:focus-visible {

    outline: 2px solid #F08E03;

    outline-offset: 2px;

}



/* =========================================================
   CONTENIDO
   ========================================================= */

.cookie-panel-body {

    padding: 10px 28px 27px;

    text-align: center;

}


.cookie-title {

    margin: 0 0 10px;

    color: #ffffff;

    font-size: 1.32rem;

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -0.01em;

}


.cookie-desc {

    max-width: 580px;

    margin: 0 auto 18px;

    color:
        rgba(255, 255, 255, 0.80);

    font-size: 0.93rem;

    line-height: 1.65;

    font-weight: 400;

}


.cookie-desc a {

    display: inline-block;

    margin-left: 3px;

    color: #F4C46D;

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

}


.cookie-desc a:hover {

    text-decoration: underline;

}


.cookie-desc a:focus-visible {

    outline: 2px solid #F08E03;

    outline-offset: 2px;

    border-radius: 3px;

}



/* =========================================================
   COOKIES NECESARIAS
   ========================================================= */

.cookie-necessary {

    max-width: 570px;

    margin: 0 auto 22px;

    padding: 13px 15px;

    display: flex;

    align-items: center;

    gap: 12px;

    text-align: left;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.045);

}


.cookie-necessary-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #6A0572,
            #F74436
        );

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

}


.cookie-necessary strong {

    display: block;

    margin-bottom: 2px;

    color: #ffffff;

    font-size: 0.86rem;

    font-weight: 700;

}


.cookie-necessary span {

    display: block;

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 0.78rem;

    line-height: 1.4;

}



/* =========================================================
   BOTONES
   ========================================================= */

.cookie-actions {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

}


.cookie-btn {

    min-width: 185px;

    padding: 11px 20px;

    border-radius: 999px;

    font-family:
        'Roboto',
        Arial,
        sans-serif;

    font-size: 0.82rem;

    font-weight: 700;

    line-height: 1.3;

    cursor: pointer;

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;

    appearance: none;

    -webkit-appearance: none;

}



/* Rechazar */

.cookie-btn-ghost {

    border:
        1px solid rgba(255, 255, 255, 0.14);

    background:
        rgba(255, 255, 255, 0.08);

    color:
        rgba(255, 255, 255, 0.92);

}


.cookie-btn-ghost:hover {

    transform:
        translateY(-1px);

    background:
        rgba(255, 255, 255, 0.14);

    border-color:
        rgba(255, 255, 255, 0.20);

}



/* Aceptar */

.cookie-btn-solid {

    border:
        1px solid transparent;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #6A0572 0%,
            #A21CAF 45%,
            #F74436 100%
        );

    box-shadow:
        0 10px 25px rgba(106, 5, 114, 0.30);

}


.cookie-btn-solid:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 14px 32px rgba(106, 5, 114, 0.40);

}


.cookie-btn:focus-visible {

    outline:
        2px solid #F08E03;

    outline-offset: 3px;

}



/* =========================================================
   UTILIDAD
   ========================================================= */

.cookie-hidden {

    display: none !important;

}



/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 768px) {


    .cookie-panel {

        bottom: 12px;

        width:
            calc(100% - 24px);

        border-radius: 21px;

        transform:
            translate(-50%, 20px)
            scale(0.99);

    }


    .cookie-panel.is-open {

        transform:
            translate(-50%, 0)
            scale(1);

    }


    .cookie-panel-header {

        padding-top: 18px;

    }


    .cookie-panel-logo {

        width: 56px;
        height: 56px;

    }


    .cookie-panel-body {

        padding:
            8px
            20px
            calc(
                20px +
                env(safe-area-inset-bottom)
            );

    }


    .cookie-title {

        font-size: 1.16rem;

    }


    .cookie-desc {

        font-size: 0.87rem;

        line-height: 1.55;

        margin-bottom: 15px;

    }


    .cookie-necessary {

        padding: 11px 12px;

        margin-bottom: 17px;

    }


    .cookie-actions {

        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 9px;

    }


    .cookie-btn {

        min-width: 0;

        width: 100%;

        padding: 11px 10px;

        font-size: 0.76rem;

    }



    /* Cookies */

    .cookie-tab {

        right: 14px;

        bottom:
            calc(
                14px +
                env(safe-area-inset-bottom)
            );

        padding: 8px 11px;

    }


    .cookie-tab-text {

        font-size: 11px;

    }



    /* WhatsApp */

    .whatsapp-float {

        right: 14px;

        bottom:
            calc(
                66px +
                env(safe-area-inset-bottom)
            );

        width: 50px;
        height: 50px;

    }


    .whatsapp-float-icon {

        width: 50px;
        height: 50px;

    }



    .cookie-overlay {

        -webkit-backdrop-filter: none;

        backdrop-filter: none;

    }

}



/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 420px) {


    .cookie-panel-body {

        padding-left: 16px;

        padding-right: 16px;

    }


    .cookie-actions {

        grid-template-columns: 1fr;

    }


    .cookie-btn {

        font-size: 0.82rem;

    }


    .cookie-necessary span {

        font-size: 0.75rem;

    }

}



/* =========================================================
   REDUCIR ANIMACIONES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {


    .cookie-panel,
    .cookie-overlay,
    .cookie-tab,
    .cookie-btn,
    .cookie-close,
    .whatsapp-float {

        transition: none !important;

    }

}
/* =========================================================
   AJUSTE MÓVIL DE FLOTANTES GLOBALES
   Pega este bloque AL FINAL de public_html/css/pages/cookies.css
========================================================= */
@media (max-width: 600px) {
  .whatsapp-float {
    right: 12px !important;
    bottom: 86px !important;
    width: 52px !important;
    height: 52px !important;
  }

  .whatsapp-float-icon {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain;
  }
}
