/* ========================================
   BANNER DE COOKIES
   ======================================== */

/* **************
    COOKIES
************** */

.cookie-banner {
    width: 100%;
    /*background: rgba(100, 100, 100, 0.55);*/
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.4s ease forwards;
    position: fixed;
    bottom: -300px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 2px solid #d4a574;
    padding: 25px 20px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


    .cookie-banner a {
        color: #00d9ff;
        text-decoration: underline;
    }

    .cookie-banner .btn {
        margin-top: 8px;
        background: linear-gradient(135deg, #d4a574, #f4d5a0);
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        cursor: pointer;
        color: #1a1a2e;
        font-weight: bold;
    }

    .cookie-banner.show {
        bottom: 0;
    }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

    .cookie-text h3 {
        color: #d4a574;
        margin-bottom: 10px;
        font-size: 20px;
    }

    .cookie-text p {
        opacity: 0.9;
        line-height: 1.6;
        font-size: 14px;
        color: #fff;
    }

    .cookie-text a {
        color: #d4a574;
        text-decoration: underline;
        transition: color 0.3s;
    }

        .cookie-text a:hover {
            color: #f4d5a0;
        }

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #d4a574, #f4d5a0);
    color: #1a1a2e;
}

    .cookie-btn-accept:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
    }

.cookie-btn-config {
    background: transparent;
    color: #d4a574;
    border: 2px solid #d4a574;
}

    .cookie-btn-config:hover {
        background: rgba(212, 165, 116, 0.1);
    }

.cookie-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .cookie-btn-reject:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

/* ========================================
   MODAL DE CONFIGURACIÓN DE COOKIES
   ======================================== */

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .cookie-settings-modal.show {
        display: flex;
    }

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.cookie-settings-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #d4a574;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(212, 165, 116, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-settings-header {
    padding: 30px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cookie-settings-header h2 {
        margin: 0;
        background: linear-gradient(135deg, #d4a574, #f4d5a0);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 24px;
    }

.close-btn {
    background: none;
    border: none;
    color: #d4a574;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        background: rgba(212, 165, 116, 0.1);
        transform: rotate(90deg);
    }

.cookie-settings-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.settings-description {
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
    color: #fff;
}

.cookie-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

    .cookie-option:hover {
        border-color: rgba(212, 165, 116, 0.4);
        background: rgba(255, 255, 255, 0.08);
    }

.cookie-option-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.cookie-option-info {
    flex: 1;
}

    .cookie-option-info h3 {
        margin: 0 0 5px 0;
        color: #d4a574;
        font-size: 18px;
    }

.cookie-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .cookie-badge.required {
        background: rgba(82, 194, 52, 0.2);
        color: #52c234;
        border: 1px solid rgba(82, 194, 52, 0.5);
    }

    .cookie-badge.optional {
        background: rgba(212, 165, 116, 0.2);
        color: #d4a574;
        border: 1px solid rgba(212, 165, 116, 0.5);
    }

.cookie-option-description {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

    .cookie-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

        .cookie-toggle input:disabled ~ .toggle-slider {
            opacity: 0.6;
            cursor: not-allowed;
        }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 26px;
    border: 2px solid rgba(212, 165, 116, 0.3);
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

.cookie-toggle input:checked ~ .toggle-slider {
    background: linear-gradient(135deg, #d4a574, #f4d5a0);
    border-color: #d4a574;
}

    .cookie-toggle input:checked ~ .toggle-slider:before {
        transform: translateX(24px);
    }

.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a574, #f4d5a0);
    color: #1a1a2e;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
    }

.btn-secondary {
    background: transparent;
    color: #d4a574;
    border: 2px solid #d4a574;
}

    .btn-secondary:hover {
        background: rgba(212, 165, 116, 0.1);
    }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-text {
        min-width: 100%;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .cookie-settings-content {
        max-height: 95vh;
    }

    .cookie-settings-header {
        padding: 20px;
    }

        .cookie-settings-header h2 {
            font-size: 20px;
        }

    .cookie-settings-body {
        padding: 20px;
    }

    .cookie-option {
        padding: 15px;
    }

    .cookie-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
