/* ===========================================
   COOKIE BANNER STYLES - MECATECNO
   =========================================== */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    z-index: 9999;
    background: rgba(18, 18, 22, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    padding: 24px 32px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 900px;
    width: calc(100% - 40px);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-banner.hide {
    transform: translateX(-50%) translateY(150%);
}

/* Banner Content */
.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
}

/* Icon */
.cookie-icon {
    font-size: 2.8rem;
    color: #8b5cf6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Text Content */
.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-text p {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.cookie-text a:hover {
    color: #a78bfa;
    text-decoration: underline;
}

/* Buttons */
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #8b5cf6;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-config {
    background: transparent;
    color: #888;
    padding: 12px 16px;
}

.cookie-btn-config:hover {
    color: #fff;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 900px) {
    .cookie-banner {
        bottom: 15px;
        padding: 20px 24px;
        border-radius: 14px;
    }
    
    .cookie-banner-content {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .cookie-icon {
        width: 48px;
        height: 48px;
        font-size: 2.2rem;
    }
    
    .cookie-text {
        flex: 1;
        min-width: 200px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
    }
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 10px;
        padding: 16px 20px;
        border-radius: 12px;
        width: calc(100% - 20px);
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cookie-icon {
        display: none;
    }
    
    .cookie-text h3 {
        font-size: 0.95rem;
    }
    
    .cookie-text p {
        font-size: 0.8rem;
    }
    
    .cookie-buttons {
        flex-direction: row;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* ===========================================
   COOKIE CONFIG MODAL (opcional para el futuro)
   =========================================== */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: #111;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal h2 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cookie-option-info p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
    border-radius: 26px;
    transition: 0.3s;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #8b5cf6;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.cookie-modal-buttons .cookie-btn {
    flex: 1;
}
