/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 999999;
    font-family: inherit;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-banner__text {
    flex: 1;
    min-width: 300px;
    line-height: 1.5;
}

.cookie-banner__text p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.cookie-banner__text a {
    color: #459294;
    text-decoration: underline;
}

.cookie-banner__text a:hover {
    color: #5bb5b8;
}

.cookie-banner__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-banner__btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-banner__btn--accept {
    background: #459294;
    color: white;
}

.cookie-banner__btn--accept:hover {
    background: #5bb5b8;
    transform: translateY(-1px);
}

.cookie-banner__btn--reject {
    background: transparent;
    color: white;
    border: 1px solid #666;
}

.cookie-banner__btn--reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #999;
}

.cookie-banner__btn--settings {
    background: transparent;
    color: #ccc;
    text-decoration: underline;
    padding: 8px 15px;
}

.cookie-banner__btn--settings:hover {
    color: white;
}

/* Modal de configuración de cookies */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000000;
    overflow-y: auto;
    padding: 20px;
}

.cookie-modal.show {
    display: block;
}

.cookie-modal__content {
    background: white;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal__header {
    background: #459294;
    color: white;
    padding: 20px 30px;
}

.cookie-modal__header h2 {
    margin: 0;
    font-size: 24px;
}

.cookie-modal__body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-modal__section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-modal__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-modal__section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.cookie-modal__section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.cookie-toggle__info {
    flex: 1;
}

.cookie-toggle__info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.cookie-toggle__info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cookie-toggle__switch {
    position: relative;
    width: 60px;
    height: 30px;
    margin-left: 20px;
}

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

.cookie-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.cookie-toggle__slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.cookie-toggle__switch input:checked + .cookie-toggle__slider {
    background-color: #459294;
}

.cookie-toggle__switch input:checked + .cookie-toggle__slider:before {
    transform: translateX(30px);
}

.cookie-modal__footer {
    padding: 20px 30px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cookie-modal__footer-left {
    display: flex;
    align-items: center;
}

.cookie-modal__footer-right {
    display: flex;
    gap: 15px;
}

.cookie-modal__link {
    color: #459294;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.2s ease;
}

.cookie-modal__link:hover {
    color: #5bb5b8;
    text-decoration: none;
}

.cookie-modal__btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-modal__btn--save {
    background: #459294;
    color: white;
}

.cookie-modal__btn--save:hover {
    background: #5bb5b8;
}

.cookie-modal__btn--cancel {
    background: #666;
    color: white;
}

.cookie-modal__btn--cancel:hover {
    background: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner__text {
        min-width: auto;
    }
    
    .cookie-banner__buttons {
        justify-content: center;
    }
    
    .cookie-modal__content {
        margin: 20px auto;
    }
    
    .cookie-modal__body {
        padding: 20px;
    }
    
    .cookie-toggle {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-toggle__switch {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .cookie-modal__footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-modal__footer-left,
    .cookie-modal__footer-right {
        justify-content: center;
    }
}
