/* GDPR Cookie dialog */

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

.gdprcookie {
    position: fixed;
    color: #5a5a5a;
    font-size: 0.95em;
    line-height: 1.6em;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    max-width: 1200px;
    width: 90%;
    padding: 2rem 2.5rem;
    background: white;
    z-index: 999999 !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border: 1px solid rgba(94, 179, 214, 0.1);
}

.gdprcookie-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #5eb3d6 0%, #7ec4dd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: 0 4px 16px rgba(94, 179, 214, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.gdprcookie-content {
    flex: 1;
    min-width: 0;
}

.gdprcookie h1 {
    color: #5eb3d6;
    font-size: 1.65em;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.gdprcookie h2 {
    color: #5a5a5a;
    font-size: 1.25em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.gdprcookie h2 {
    font-size: 1.15em;
}

.gdprcookie a {
    cursor: pointer;
    color: #5eb3d6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.gdprcookie a:hover {
    color: #4a9ec4;
    border-bottom-color: #4a9ec4;
}

@media (max-width: 768px) {
    .gdprcookie-types li {
        width: 100% !important;
        padding: 0.75rem 0.875rem;
        margin: 0 !important;
    }

    .gdprcookie-types ul {
        gap: 0.375rem;
    }
}

@media (max-width: 992px) {
    .gdprcookie {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 2rem;
        gap: 1.5rem;
    }
    .gdprcookie-buttons {
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }
    .gdprcookie h1 {
        font-size: 1.5em;
    }
}

@media (max-width: 576px) {
    .gdprcookie {
        width: 95%;
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
        gap: 1.25rem;
    }
    .gdprcookie-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
    .gdprcookie h1 {
        font-size: 1.35em;
    }
    .gdprcookie-text {
        font-size: 0.95em;
    }
    .gdprcookie-buttons {
        min-width: auto;
        gap: 0.875rem;
        margin-left: 0;
    }
    .gdprcookie-buttons button {
        font-size: 0.9em;
        padding: 0.75rem 1.5rem;
    }
    .gdprcookie-btn-reject {
        padding: 0.5rem 1rem !important;
    }
}


/* GDPR Cookie buttons */

.gdprcookie-buttons {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    min-width: 240px;
    margin-left: 1.5rem;
}

.gdprcookie-buttons button {
    font-family: inherit;
    font-size: 0.95em;
    padding: 0.875rem 1.75rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    outline: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.gdprcookie-buttons button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.gdprcookie-buttons button:active::before {
    width: 300px;
    height: 300px;
}

/* Botón Aceptar todas */
.gdprcookie-btn-accept {
    background: linear-gradient(135deg, #5eb3d6 0%, #4a9ec4 100%) !important;
    color: white !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 12px rgba(94, 179, 214, 0.3) !important;
}

.gdprcookie-btn-accept:hover {
    background: linear-gradient(135deg, #4a9ec4 0%, #3d8fb3 100%) !important;
    box-shadow: 0 6px 20px rgba(94, 179, 214, 0.4) !important;
    transform: translateY(-2px) !important;
}

.gdprcookie-btn-accept:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(94, 179, 214, 0.3) !important;
}

/* Botón Configurar */
.gdprcookie-btn-advanced {
    background: white !important;
    color: #5eb3d6 !important;
    border: 2px solid #5eb3d6 !important;
    box-shadow: 0 2px 8px rgba(94, 179, 214, 0.15) !important;
}

.gdprcookie-btn-advanced:hover {
    background: #f0f9fc !important;
    border-color: #4a9ec4 !important;
    color: #4a9ec4 !important;
    box-shadow: 0 4px 12px rgba(94, 179, 214, 0.25) !important;
    transform: translateY(-2px) !important;
}

.gdprcookie-btn-advanced:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(94, 179, 214, 0.2) !important;
}

/* Botón Rechazar no esenciales */
.gdprcookie-btn-reject {
    background: transparent !important;
    color: #5eb3d6 !important;
    border: none !important;
    padding: 0.625rem 1.25rem !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.gdprcookie-btn-reject::before {
    display: none !important;
}

.gdprcookie-btn-reject:hover {
    color: #4a9ec4 !important;
    background: rgba(94, 179, 214, 0.08) !important;
}

.gdprcookie-btn-reject:active {
    background: rgba(94, 179, 214, 0.15) !important;
}

.gdprcookie-buttons button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.gdprcookie-buttons button:disabled:hover {
    transform: none !important;
}

@media (max-width: 576px) {
    .gdprcookie-buttons {
        min-width: auto;
        gap: 0.75rem;
    }
    .gdprcookie-buttons button {
        font-size: 0.9em;
        padding: 0.75rem 1.5rem;
    }
    .gdprcookie-btn-reject {
        padding: 0.5rem 1rem !important;
    }
}


/* GDPR Cookie types */
.gdprcookie-types {
    background: #f8fbfc;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid rgba(94, 179, 214, 0.15);
}

.gdprcookie-types ul {
    padding: 0 !important;
    margin: 0 0 1rem !important;
    list-style: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gdprcookie-types ul::before,
.gdprcookie-types ul::after {
    display: none !important;
    content: none !important;
}

.gdprcookie-types li {
    display: flex !important;
    align-items: center;
    list-style: none !important;
    width: calc(50% - 0.25rem);
    padding: 0.875rem 1rem;
    margin: 0 !important;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.gdprcookie-types li::before,
.gdprcookie-types li::after,
.gdprcookie-types li::marker {
    content: none !important;
    display: none !important;
}

.gdprcookie-types li:hover {
    background: rgba(94, 179, 214, 0.08);
}

.gdprcookie-types input[type=checkbox] {
    cursor: pointer;
    margin-right: 0.75rem;
    margin-left: 0;
    width: 20px;
    height: 20px;
    accent-color: #5eb3d6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gdprcookie-types input[type=checkbox]:hover {
    transform: scale(1.1);
}

.gdprcookie-types label {
    color: #5a5a5a;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.2s ease;
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex: 1;
}

.gdprcookie-types label:hover {
    color: #4a9ec4;
}

.estileTooltip {
    cursor: pointer;
    margin-left: 8px;
    color: #5eb3d6;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 1.3em;
    position: relative;
}

.estileTooltip:hover {
    color: #4a9ec4;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .gdprcookie-types li {
        width: 100%;
    }
}