/* ============================================
   BANNER DE COOKIES (primera visita)
   ============================================ */
.cookie-banner {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(99, 75, 88, 0.45);
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
}

.cookie-banner--visible {
    display: flex;
}

.cookie-banner__box {
    background: #fff;
    border: 2px solid #E1566E;
    border-radius: 15px;
    padding: 25px 30px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(216, 92, 138, 0.25);
    font-family: 'Nunito', sans-serif;
    color: #634b58;
}

.cookie-banner__title {
    font-family: 'Pacifico', cursive;
    color: #E1566E;
    font-size: 1.3em;
    margin: 0 0 8px;
}

.cookie-banner__text {
    font-size: 0.92em;
    line-height: 1.5;
    margin: 0 0 18px;
}

.cookie-banner__text a {
    color: #E1566E;
    text-decoration: underline;
    font-weight: 700;
}

.cookie-banner__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   BOTONES COMPARTIDOS
   ============================================ */
.cookie-btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    border: 2px solid #E1566E;
    border-radius: 10px;
    padding: 9px 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-btn--accept {
    background: #E1566E;
    color: #fff;
    border-color: #E1566E;
}

.cookie-btn--accept:hover {
    background: #c94056;
}

.cookie-btn--reject {
    background: #fff;
    color: #E1566E;
}

.cookie-btn--reject:hover {
    background: #ffeef2;
}

.cookie-btn--config {
    background: #fff;
    color: #634b58;
    border-color: #634b58;
}

.cookie-btn--config:hover {
    background: #f5eef1;
}

/* ============================================
   TOGGLES DE CONFIGURACION
   ============================================ */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.93em;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
    accent-color: #E1566E;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"]:disabled {
    cursor: default;
    opacity: 0.6;
}

/* ============================================
   WIDGET FLOTANTE (esquina inferior izquierda)
   ============================================ */
.cookie-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.cookie-float__btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #E1566E;
    background: #fff;
    box-shadow: 0 4px 16px rgba(216, 92, 138, 0.3);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.cookie-float__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(216, 92, 138, 0.45);
}

.cookie-float__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Panel que aparece encima del botón */
.cookie-float__panel {
    background: #fff;
    border: 2px solid #E1566E;
    border-radius: 15px;
    padding: 18px 20px;
    width: 240px;
    box-shadow: 0 6px 20px rgba(216, 92, 138, 0.25);
    font-family: 'Nunito', sans-serif;
    color: #634b58;
    font-size: 0.9em;
    position: relative;

    /* Oculto por defecto con animación */
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-float__panel--open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cookie-float__panel-title {
    font-family: 'Pacifico', cursive;
    color: #E1566E;
    font-size: 1.1em;
    margin: 0 0 12px;
}

.cookie-float__panel-buttons {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.cookie-float__panel-buttons .cookie-btn {
    font-size: 0.88em;
    padding: 7px 14px;
    flex: 1;
    text-align: center;
}

.cookie-float__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #634b58;
    font-size: 1.3em;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}

.cookie-float__close:hover {
    background: #ffeef2;
    color: #E1566E;
}

.cookie-float__policy-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.85em;
    color: #E1566E;
    font-weight: 700;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 500px) {
    .cookie-banner__box {
        padding: 18px 15px;
    }
    .cookie-banner__buttons {
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    .cookie-float {
        bottom: 14px;
        left: 14px;
    }
    .cookie-float__btn {
        width: 44px;
        height: 44px;
    }
    .cookie-float__panel {
        width: 210px;
    }
}

