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

/* Banner principal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0C1A3A;
    color: white;
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-text p {
    margin: 0 0 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-text-secondary {
    font-size: 0.85rem !important;
    opacity: 0.9;
}

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

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

/* Botones del banner */
.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 12px 30px;
    border: 2px solid #C7A14A;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.cookie-btn-accept {
    background: #C7A14A;
    color: white;
}

.cookie-btn-accept:hover {
    background: #b8923f;
}

.cookie-btn-modify {
    background: transparent;
    color: #C7A14A;
}

.cookie-btn-modify:hover {
    background: rgba(199, 161, 74, 0.1);
}

.cookie-btn-reject {
    background: transparent;
    color: #C7A14A;
}

.cookie-btn-reject:hover {
    background: rgba(199, 161, 74, 0.1);
}

/* Panel de configuración de cookies */
.cookie-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-settings-panel.visible {
    display: flex;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cookie-settings-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    background: #0C1A3A;
    color: white;
    border-radius: 15px 15px 0 0;
}

.cookie-settings-header h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.cookie-settings-close:hover {
    opacity: 1;
}

.cookie-settings-body {
    padding: 25px 30px;
}

.cookie-category {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.cookie-category-info h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #0C1A3A;
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.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-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #C7A14A;
}

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

.cookie-toggle.disabled .cookie-toggle-slider {
    background-color: #C7A14A;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: center;
}


/* ======== ESTILOS MODAL WHATSAPP ======== */

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

.whatsapp-modal.visible {
    display: flex;
}

.whatsapp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.whatsapp-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.whatsapp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.whatsapp-modal-close:hover {
    color: #333;
}

.whatsapp-modal-icon {
    width: 80px;
    height: 80px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.whatsapp-modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.whatsapp-modal-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #0C1A3A;
    margin: 0 0 20px;
}

.whatsapp-modal-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    max-height: 200px;
    overflow-y: auto;
}

.whatsapp-modal-text p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.7;
    text-align: justify;
    color: #555;
}

.whatsapp-modal-text a {
    color: #C7A14A;
}

.whatsapp-modal-checkbox {
    text-align: left;
    margin-bottom: 25px;
}

.whatsapp-modal-checkbox .checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
}

.whatsapp-modal-checkbox .checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.whatsapp-modal-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.whatsapp-modal-checkbox .checkbox-container:hover .checkmark {
    border-color: #25D366;
}

.whatsapp-modal-checkbox .checkbox-container input:checked ~ .checkmark {
    background-color: #25D366;
    border-color: #25D366;
}

.whatsapp-modal-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.whatsapp-modal-checkbox .checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.whatsapp-modal-checkbox .checkbox-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.whatsapp-modal-checkbox .checkbox-note {
    margin: 5px 0 0 35px;
    font-size: 0.75rem;
    font-style: italic;
    color: #c00;
}

.whatsapp-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.whatsapp-modal-btn:hover:not(:disabled) {
    background: #1da851;
    transform: translateY(-2px);
}

.whatsapp-modal-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.whatsapp-modal-btn i {
    font-size: 1.3rem;
}


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

@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-settings-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 20px;
    }
    
    .whatsapp-modal-content {
        padding: 30px 25px;
    }
    
    .whatsapp-modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-modal-icon i {
        font-size: 2rem;
    }
    
    .whatsapp-modal-content h3 {
        font-size: 1.3rem;
    }
    
    .whatsapp-modal-text {
        max-height: 150px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-text p {
        font-size: 0.8rem;
    }
    
    .cookie-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
}
