/* Sistema de Banner de Cookies - TopoTechnology CR */
/* Diseño moderno con Glassmorphism */

.cookie-consent-banner {
    position: fixed;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
    width: 90%;
    z-index: 99999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-consent-banner.show {
    bottom: 30px;
    opacity: 1;
}

.cookie-consent-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(255, 68, 68, 0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.cookie-consent-icon {
    font-size: 3rem;
    line-height: 1;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.cookie-consent-text a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-consent-text a:hover {
    color: #ff4444;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.cookie-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: inherit;
}

.cookie-btn i {
    font-size: 1.1rem;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #d32f2f 0%, #ff4444 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    transform: translateY(-2px);
}

.cookie-btn-accept:active {
    transform: translateY(0);
}

.cookie-btn-reject {
    background: rgba(100, 100, 100, 0.1);
    color: #666;
    border: 1px solid rgba(100, 100, 100, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(100, 100, 100, 0.2);
    color: #333;
    border-color: rgba(100, 100, 100, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        width: 95%;
        max-width: none;
    }

    .cookie-consent-banner.show {
        bottom: 15px;
    }

    .cookie-consent-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }

    .cookie-consent-icon {
        font-size: 2.5rem;
        justify-self: center;
    }

    .cookie-consent-text h3 {
        font-size: 1.15rem;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }

    .cookie-consent-buttons {
        flex-direction: row;
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Animación suave para cuando se oculta */
.cookie-consent-banner:not(.show) {
    pointer-events: none;
}
