/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.cookie-message h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #00d4ff;
}

.cookie-message p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.cookie-types {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

.cookie-types li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0.9;
}

.cookie-types li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept {
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
    color: #ffffff;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.cookie-reject {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.cookie-reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-custom {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
}

.cookie-custom:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.cookie-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.cookie-close:hover {
    color: #00d4ff;
}

.cookie-modal-content h2 {
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.cookie-setting {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-setting:last-of-type {
    border-bottom: none;
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.setting-header h3 {
    color: #1a1a1a;
    font-size: 1.1rem;
    margin: 0;
}

.cookie-setting p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== TOGGLE SWITCH ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00d4ff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    background-color: #00d4ff;
    cursor: not-allowed;
}

/* ===== MODAL BUTTONS ===== */
.cookie-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.cookie-modal-buttons .btn {
    width: 100%;
}

.link-politica {
    text-align: center;
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-politica:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* ===== ANIMACIONES ===== */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== POLITICA SECTION ===== */
.politica-section {
    padding: 80px 0;
    background: var(--blanco);
}

.politica-content {
    max-width: 800px;
    margin: 0 auto;
}

.politica-content h2 {
    font-size: 1.8rem;
    color: var(--azul-oscuro);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--cyan);
    padding-bottom: 0.5rem;
}

.politica-content h2:first-child {
    margin-top: 0;
}

.politica-content p {
    font-size: 1rem;
    color: var(--gris-oscuro);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.politica-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.politica-content ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--gris-oscuro);
}

.politica-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: bold;
}

.politica-content a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.politica-content a:hover {
    color: var(--azul-claro);
    text-decoration: underline;
}

.cookie-type {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 182, 193, 0.1) 100%);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--cyan);
    margin-bottom: 2rem;
}

.cookie-type h3 {
    font-size: 1.3rem;
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
}

.browser-guide {
    background: var(--gris-claro);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.browser-guide h3 {
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
}

.browser-guide ol {
    margin-left: 1.5rem;
    color: var(--gris-oscuro);
}

.browser-guide ol li {
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cookie-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-banner {
        padding: 15px;
    }

    .cookie-message h3 {
        font-size: 1.1rem;
    }

    .cookie-message p {
        font-size: 0.85rem;
    }

    .cookie-modal-content {
        padding: 30px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 10px;
    }

    .cookie-content {
        gap: 15px;
    }

    .cookie-message h3 {
        font-size: 1rem;
    }

    .cookie-message p {
        font-size: 0.8rem;
    }

    .cookie-types li {
        font-size: 0.8rem;
    }

    .cookie-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}