/* Overlay de política de privacidad */
.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.privacy-overlay.hidden {
    display: none;
}

.privacy-modal {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.privacy-header {
    padding: 30px;
    background: #dec48a;
    background: -webkit-linear-gradient(135deg, #dec48a 0%, #c9ae74 100%);
    background: linear-gradient(135deg, #dec48a 0%, #c9ae74 100%);
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.privacy-header h1 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.privacy-lang-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.privacy-lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: "Raleway", sans-serif;
}

.privacy-lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.privacy-lang-btn.active {
    background: white;
    color: #c9ae74;
    border-color: white;
    font-weight: 600;
}

.privacy-content {
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}


.privacy-column {
    display: flex;
    flex-direction: column;
}

.privacy-column h2:first-of-type {
    margin-top: 0;
}

.privacy-content h2 {
    color: #2d5016;
    color: var(--green, #2d5016);
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-content ul {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 25px;
}

.privacy-content li {
    margin-bottom: 8px;
}

.privacy-section {
    margin-bottom: 25px;
}

.privacy-footer {
    padding: 20px 30px;
    background: #f9f9f9;
    border-radius: 0 0 15px 15px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #e0e0e0;
}

.privacy-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Raleway", sans-serif;
    min-width: 140px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.privacy-btn-accept {
    /* Colores fallback para navegadores que no soportan variables CSS */
    background: #dec48a;
    background: linear-gradient(135deg, #dec48a 0%, #d4b97d 100%);
    background: linear-gradient(135deg, #dec48a, var(--cream, #d4b97d));
    color: #2d5016;
    color: var(--green, #2d5016);
    border: 2px solid transparent;
}

.privacy-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(222, 196, 138, 0.4);
    background: #d4b97d;
    background: linear-gradient(135deg, #d4b97d 0%, #c9ae74 100%);
}

.privacy-btn-deny {
    background: #ffffff;
    color: #2d5016;
    color: var(--green, #2d5016);
    border: 2px solid #dddddd;
}

.privacy-btn-deny:hover {
    background: #f5f5f5;
    border-color: #cccccc;
}

/* Scrollbar personalizada */
.privacy-content::-webkit-scrollbar {
    width: 8px;
}

.privacy-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.privacy-content::-webkit-scrollbar-thumb {
    background: #d4b97d;
    background: var(--cream, #d4b97d);
    border-radius: 10px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
    background: #c9ae74;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .privacy-modal {
        width: 95%;
        max-height: 85vh;
        position: relative;
        bottom: 4vh;
    }

    .privacy-header {
        padding: 20px;
    }

    .privacy-header h1 {
        font-size: 22px;
    }

    .privacy-content {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .privacy-footer {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 15px 20px;
        gap: 10px;
    }

    .privacy-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Mensaje de advertencia */
.privacy-warning-message {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #f44336;
    background: -webkit-linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
    font-size: 14px;
    text-align: center;
    max-width: 90%;
    z-index: 10001;
    animation: warningSlideUp 0.3s ease;
    -webkit-animation: warningSlideUp 0.3s ease;
}

.privacy-warning-message strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

@keyframes warningSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .privacy-warning-message {
        bottom: 110px;
        padding: 12px 20px;
        font-size: 13px;
    }
}
